~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_sum.cc

  • Committer: Brian Aker
  • Date: 2008-07-26 18:39:33 UTC
  • mfrom: (212.1.3 codestyle)
  • Revision ID: brian@tangent.org-20080726183933-hueup0fcy2zs1hug
Merge Monty

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 __attribute__((__unused__)),
 
484
Field *Item_sum::create_tmp_field(bool group __attribute__((unused)),
485
485
                                  TABLE *table,
486
486
                                  uint convert_blob_length)
487
487
{
861
861
 
862
862
 
863
863
static int item_sum_distinct_walk(void *element,
864
 
                                  element_count num_of_dups __attribute__((__unused__)),
 
864
                                  element_count num_of_dups __attribute__((unused)),
865
865
                                  void *item)
866
866
{
867
867
  return ((Item_sum_distinct*) (item))->unique_walk_function(element);
1214
1214
 
1215
1215
 
1216
1216
Field *Item_sum_avg::create_tmp_field(bool group, TABLE *table,
1217
 
                                      uint convert_blob_len __attribute__((__unused__)))
 
1217
                                      uint convert_blob_len __attribute__((unused)))
1218
1218
{
1219
1219
  Field *field;
1220
1220
  if (group)
1424
1424
  pass around.
1425
1425
*/
1426
1426
Field *Item_sum_variance::create_tmp_field(bool group, TABLE *table,
1427
 
                                           uint convert_blob_len __attribute__((__unused__)))
 
1427
                                           uint convert_blob_len __attribute__((unused)))
1428
1428
{
1429
1429
  Field *field;
1430
1430
  if (group)
2464
2464
 
2465
2465
C_MODE_START
2466
2466
 
2467
 
static int count_distinct_walk(void *elem __attribute__((__unused__)),
2468
 
                               element_count count __attribute__((__unused__)),
 
2467
static int count_distinct_walk(void *elem __attribute__((unused)),
 
2468
                               element_count count __attribute__((unused)),
2469
2469
                               void *arg)
2470
2470
{
2471
2471
  (*((uint64_t*)arg))++;
3436
3436
}
3437
3437
 
3438
3438
 
3439
 
String* Item_func_group_concat::val_str(String* str __attribute__((__unused__)))
 
3439
String* Item_func_group_concat::val_str(String* str __attribute__((unused)))
3440
3440
{
3441
3441
  assert(fixed == 1);
3442
3442
  if (null_value)