~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_parse.cc

Renamed __attribute__((__unused__)) to __attribute__((unused)). 
It takes up a few less chars, but also seems to be the standard usage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3434
3434
    - 0, otherwise
3435
3435
*/
3436
3436
 
3437
 
TABLE_LIST *st_select_lex::end_nested_join(THD *thd __attribute__((__unused__)))
 
3437
TABLE_LIST *st_select_lex::end_nested_join(THD *thd __attribute__((unused)))
3438
3438
{
3439
3439
  TABLE_LIST *ptr;
3440
3440
  NESTED_JOIN *nested_join;
3925
3925
    This is written such that we have a short lock on LOCK_thread_count
3926
3926
*/
3927
3927
 
3928
 
uint kill_one_thread(THD *thd __attribute__((__unused__)),
 
3928
uint kill_one_thread(THD *thd __attribute__((unused)),
3929
3929
                     ulong id, bool only_kill_query)
3930
3930
{
3931
3931
  THD *tmp;
4106
4106
*/
4107
4107
 
4108
4108
bool multi_update_precheck(THD *thd,
4109
 
                           TABLE_LIST *tables __attribute__((__unused__)))
 
4109
                           TABLE_LIST *tables __attribute__((unused)))
4110
4110
{
4111
4111
  const char *msg= 0;
4112
4112
  LEX *lex= thd->lex;
4143
4143
*/
4144
4144
 
4145
4145
bool multi_delete_precheck(THD *thd,
4146
 
                           TABLE_LIST *tables __attribute__((__unused__)))
 
4146
                           TABLE_LIST *tables __attribute__((unused)))
4147
4147
{
4148
4148
  SELECT_LEX *select_lex= &thd->lex->select_lex;
4149
4149
  TABLE_LIST **save_query_tables_own_last= thd->lex->query_tables_own_last;
4178
4178
  @return Matching table, NULL otherwise.
4179
4179
*/
4180
4180
 
4181
 
static TABLE_LIST *multi_delete_table_match(LEX *lex __attribute__((__unused__)),
 
4181
static TABLE_LIST *multi_delete_table_match(LEX *lex __attribute__((unused)),
4182
4182
                                            TABLE_LIST *tbl,
4183
4183
                                            TABLE_LIST *tables)
4184
4184
{
4270
4270
    true  Error
4271
4271
*/
4272
4272
 
4273
 
bool update_precheck(THD *thd, TABLE_LIST *tables __attribute__((__unused__)))
 
4273
bool update_precheck(THD *thd, TABLE_LIST *tables __attribute__((unused)))
4274
4274
{
4275
4275
  if (thd->lex->select_lex.item_list.elements != thd->lex->value_list.elements)
4276
4276
  {
4293
4293
    true   error
4294
4294
*/
4295
4295
 
4296
 
bool insert_precheck(THD *thd, TABLE_LIST *tables __attribute__((__unused__)))
 
4296
bool insert_precheck(THD *thd, TABLE_LIST *tables __attribute__((unused)))
4297
4297
{
4298
4298
  LEX *lex= thd->lex;
4299
4299
 
4324
4324
*/
4325
4325
 
4326
4326
bool create_table_precheck(THD *thd,
4327
 
                           TABLE_LIST *tables __attribute__((__unused__)),
 
4327
                           TABLE_LIST *tables __attribute__((unused)),
4328
4328
                           TABLE_LIST *create_table)
4329
4329
{
4330
4330
  LEX *lex= thd->lex;