~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_sum.cc

Bunch of warning cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
481
481
}
482
482
 
483
483
 
484
 
Field *Item_sum::create_tmp_field(bool group, TABLE *table,
 
484
Field *Item_sum::create_tmp_field(bool group __attribute__((__unused__)),
 
485
                                  TABLE *table,
485
486
                                  uint convert_blob_length)
486
487
{
487
488
  Field *field;
869
870
}
870
871
 
871
872
 
872
 
static int item_sum_distinct_walk(void *element, element_count num_of_dups,
 
873
static int item_sum_distinct_walk(void *element,
 
874
                                  element_count num_of_dups __attribute__((__unused__)),
873
875
                                  void *item)
874
876
{
875
877
  return ((Item_sum_distinct*) (item))->unique_walk_function(element);
1226
1228
 
1227
1229
 
1228
1230
Field *Item_sum_avg::create_tmp_field(bool group, TABLE *table,
1229
 
                                      uint convert_blob_len)
 
1231
                                      uint convert_blob_len __attribute__((__unused__)))
1230
1232
{
1231
1233
  Field *field;
1232
1234
  if (group)
1438
1440
  pass around.
1439
1441
*/
1440
1442
Field *Item_sum_variance::create_tmp_field(bool group, TABLE *table,
1441
 
                                           uint convert_blob_len)
 
1443
                                           uint convert_blob_len __attribute__((__unused__)))
1442
1444
{
1443
1445
  Field *field;
1444
1446
  if (group)
2479
2481
 
2480
2482
C_MODE_START
2481
2483
 
2482
 
static int count_distinct_walk(void *elem, element_count count, void *arg)
 
2484
static int count_distinct_walk(void *elem __attribute__((__unused__)),
 
2485
                               element_count count __attribute__((__unused__)),
 
2486
                               void *arg)
2483
2487
{
2484
2488
  (*((ulonglong*)arg))++;
2485
2489
  return 0;
3471
3475
}
3472
3476
 
3473
3477
 
3474
 
String* Item_func_group_concat::val_str(String* str)
 
3478
String* Item_func_group_concat::val_str(String* str __attribute__((__unused__)))
3475
3479
{
3476
3480
  DBUG_ASSERT(fixed == 1);
3477
3481
  if (null_value)