~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_sum.h

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:
363
363
  */
364
364
  void no_rows_in_result() { clear(); }
365
365
 
366
 
  virtual bool setup(THD *thd __attribute__((__unused__))) {return 0;}
 
366
  virtual bool setup(THD *thd __attribute__((unused))) {return 0;}
367
367
  virtual void make_unique(void) {}
368
368
  Item *get_tmp_table_item(THD *thd);
369
369
  virtual Field *create_tmp_field(bool group, TABLE *table,
680
680
  String *val_str(String *str);
681
681
  void reset_field();
682
682
  void update_field();
683
 
  Item *result_item(Field *field __attribute__((__unused__)))
 
683
  Item *result_item(Field *field __attribute__((unused)))
684
684
  { return new Item_avg_field(hybrid_type, this); }
685
685
  void no_rows_in_result() {}
686
686
  const char *func_name() const { return "avg("; }
771
771
  my_decimal *val_decimal(my_decimal *);
772
772
  void reset_field();
773
773
  void update_field();
774
 
  Item *result_item(Field *field __attribute__((__unused__)))
 
774
  Item *result_item(Field *field __attribute__((unused)))
775
775
  { return new Item_variance_field(this); }
776
776
  void no_rows_in_result() {}
777
777
  const char *func_name() const
813
813
    {}
814
814
  enum Sumfunctype sum_func () const { return STD_FUNC; }
815
815
  double val_real();
816
 
  Item *result_item(Field *field __attribute__((__unused__)))
 
816
  Item *result_item(Field *field __attribute__((unused)))
817
817
    { return new Item_std_field(this); }
818
818
  const char *func_name() const { return "std("; }
819
819
  Item *copy_or_same(THD* thd);