~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/lock.cc

  • Committer: Monty Taylor
  • Date: 2008-07-09 15:52:52 UTC
  • mto: (77.6.1 glibclient-merge)
  • mto: This revision was merged to the branch mainline in revision 112.
  • Revision ID: monty@inaugust.com-20080709155252-lnzmxxje1g40z3a7
Warning fixes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
  @param flags Lock flags
132
132
  @return 0 if all the check passed, non zero if a check failed.
133
133
*/
134
 
int mysql_lock_tables_check(THD *thd, TABLE **tables, uint count, uint flags)
 
134
int mysql_lock_tables_check(THD *thd __attribute__((__unused__)),
 
135
                            TABLE **tables, uint count,
 
136
                            uint flags __attribute__((__unused__)))
135
137
{
136
138
  uint system_count;
137
139
  uint i;
1042
1044
}
1043
1045
 
1044
1046
 
1045
 
void unlock_table_name(THD *thd, TABLE_LIST *table_list)
 
1047
void unlock_table_name(THD *thd __attribute__((__unused__)),
 
1048
                       TABLE_LIST *table_list)
1046
1049
{
1047
1050
  if (table_list->table)
1048
1051
  {
1052
1055
}
1053
1056
 
1054
1057
 
1055
 
static bool locked_named_table(THD *thd, TABLE_LIST *table_list)
 
1058
static bool locked_named_table(THD *thd __attribute__((__unused__)),
 
1059
                               TABLE_LIST *table_list)
1056
1060
{
1057
1061
  for (; table_list ; table_list=table_list->next_local)
1058
1062
  {