~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_func.cc

Bunch of warning cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
*/
139
139
 
140
140
bool
141
 
Item_func::fix_fields(THD *thd, Item **ref)
 
141
Item_func::fix_fields(THD *thd, Item **ref __attribute__((__unused__)))
142
142
{
143
143
  DBUG_ASSERT(fixed == 0);
144
144
  Item **arg,**arg_end;
195
195
}
196
196
 
197
197
 
198
 
void Item_func::fix_after_pullout(st_select_lex *new_parent, Item **ref)
 
198
void Item_func::fix_after_pullout(st_select_lex *new_parent,
 
199
                                  Item **ref __attribute__((__unused__)))
199
200
{
200
201
  Item **arg,**arg_end;
201
202
 
4372
4373
}
4373
4374
 
4374
4375
 
4375
 
void Item_func_get_user_var::print(String *str, enum_query_type query_type)
 
4376
void Item_func_get_user_var::print(String *str,
 
4377
                                   enum_query_type query_type __attribute__((__unused__)))
4376
4378
{
4377
4379
  str->append(STRING_WITH_LEN("(@"));
4378
4380
  str->append(name.str,name.length);
4380
4382
}
4381
4383
 
4382
4384
 
4383
 
bool Item_func_get_user_var::eq(const Item *item, bool binary_cmp) const
 
4385
bool Item_func_get_user_var::eq(const Item *item,
 
4386
                                bool binary_cmp __attribute__((__unused__))) const
4384
4387
{
4385
4388
  /* Assume we don't have rtti */
4386
4389
  if (this == item)
4442
4445
}
4443
4446
 
4444
4447
 
4445
 
String* Item_user_var_as_out_param::val_str(String *str)
4446
 
{
4447
 
  DBUG_ASSERT(0);
4448
 
  return 0;
4449
 
}
4450
 
 
4451
 
 
4452
 
my_decimal* Item_user_var_as_out_param::val_decimal(my_decimal *decimal_buffer)
4453
 
{
4454
 
  DBUG_ASSERT(0);
4455
 
  return 0;
4456
 
}
4457
 
 
4458
 
 
4459
 
void Item_user_var_as_out_param::print(String *str, enum_query_type query_type)
 
4448
String* Item_user_var_as_out_param::val_str(String *str __attribute__((__unused__)))
 
4449
{
 
4450
  DBUG_ASSERT(0);
 
4451
  return 0;
 
4452
}
 
4453
 
 
4454
 
 
4455
my_decimal* Item_user_var_as_out_param::val_decimal(my_decimal *decimal_buffer __attribute__((__unused__)))
 
4456
{
 
4457
  DBUG_ASSERT(0);
 
4458
  return 0;
 
4459
}
 
4460
 
 
4461
 
 
4462
void Item_user_var_as_out_param::print(String *str,
 
4463
                                       enum_query_type query_type __attribute__((__unused__)))
4460
4464
{
4461
4465
  str->append('@');
4462
4466
  str->append(name.str,name.length);