~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.cc

  • Committer: Monty Taylor
  • Date: 2009-01-23 06:03:42 UTC
  • mto: (801.1.3 testable) (779.3.2 devel)
  • mto: This revision was merged to the branch mainline in revision 811.
  • Revision ID: mordred@inaugust.com-20090123060342-i00afsgar78qz3nu
Got rid of __attribute__((unused)) and the like from the .cc files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
497
497
}
498
498
 
499
499
 
500
 
Field *Item_sum::create_tmp_field(bool group __attribute__((unused)),
 
500
Field *Item_sum::create_tmp_field(bool ,
501
501
                                  Table *table,
502
502
                                  uint32_t convert_blob_length)
503
503
{
886
886
 
887
887
 
888
888
static int item_sum_distinct_walk(void *element,
889
 
                                  element_count num_of_dups __attribute__((unused)),
 
889
                                  element_count ,
890
890
                                  void *item)
891
891
{
892
892
  return ((Item_sum_distinct*) (item))->unique_walk_function(element);
1248
1248
 
1249
1249
 
1250
1250
Field *Item_sum_avg::create_tmp_field(bool group, Table *table,
1251
 
                                      uint32_t convert_blob_len __attribute__((unused)))
 
1251
                                      uint32_t )
1252
1252
{
1253
1253
  Field *field;
1254
1254
  if (group)
1464
1464
  pass around.
1465
1465
*/
1466
1466
Field *Item_sum_variance::create_tmp_field(bool group, Table *table,
1467
 
                                           uint32_t convert_blob_len __attribute__((unused)))
 
1467
                                           uint32_t )
1468
1468
{
1469
1469
  Field *field;
1470
1470
  if (group)
2517
2517
extern "C" {
2518
2518
#endif
2519
2519
 
2520
 
static int count_distinct_walk(void *elem __attribute__((unused)),
2521
 
                               element_count count __attribute__((unused)),
 
2520
static int count_distinct_walk(void *,
 
2521
                               element_count ,
2522
2522
                               void *arg)
2523
2523
{
2524
2524
  (*((uint64_t*)arg))++;
2882
2882
  Append data from current leaf to item->result.
2883
2883
*/
2884
2884
 
2885
 
int dump_leaf_key(unsigned char* key, element_count count __attribute__((unused)),
 
2885
int dump_leaf_key(unsigned char* key, element_count ,
2886
2886
                  Item_func_group_concat *item)
2887
2887
{
2888
2888
  Table *table= item->table;
3339
3339
}
3340
3340
 
3341
3341
 
3342
 
String* Item_func_group_concat::val_str(String* str __attribute__((unused)))
 
3342
String* Item_func_group_concat::val_str(String* )
3343
3343
{
3344
3344
  assert(fixed == 1);
3345
3345
  if (null_value)