~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/item_timefunc.cc

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:
1468
1468
}
1469
1469
 
1470
1470
 
1471
 
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
 
1471
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((unused)))
1472
1472
{
1473
1473
  int64_t value=args[0]->val_int();
1474
1474
  if ((null_value=args[0]->null_value))
1542
1542
}
1543
1543
 
1544
1544
 
1545
 
String *Item_func_curtime::val_str(String *str __attribute__((__unused__)))
 
1545
String *Item_func_curtime::val_str(String *str __attribute__((unused)))
1546
1546
{
1547
1547
  assert(fixed == 1);
1548
1548
  str_value.set(buff, buff_length, &my_charset_bin);
1591
1591
}
1592
1592
 
1593
1593
 
1594
 
String *Item_func_now::val_str(String *str __attribute__((__unused__)))
 
1594
String *Item_func_now::val_str(String *str __attribute__((unused)))
1595
1595
{
1596
1596
  assert(fixed == 1);
1597
1597
  str_value.set(buff,buff_length, &my_charset_bin);
1648
1648
}
1649
1649
 
1650
1650
 
1651
 
int Item_func_now::save_in_field(Field *to, bool no_conversions __attribute__((__unused__)))
 
1651
int Item_func_now::save_in_field(Field *to, bool no_conversions __attribute__((unused)))
1652
1652
{
1653
1653
  to->set_notnull();
1654
1654
  return to->store_time(&ltime, MYSQL_TIMESTAMP_DATETIME);
1667
1667
}
1668
1668
 
1669
1669
 
1670
 
String *Item_func_sysdate_local::val_str(String *str __attribute__((__unused__)))
 
1670
String *Item_func_sysdate_local::val_str(String *str __attribute__((unused)))
1671
1671
{
1672
1672
  assert(fixed == 1);
1673
1673
  store_now_in_TIME(&ltime);
1710
1710
}
1711
1711
 
1712
1712
 
1713
 
int Item_func_sysdate_local::save_in_field(Field *to, bool no_conversions __attribute__((__unused__)))
 
1713
int Item_func_sysdate_local::save_in_field(Field *to, bool no_conversions __attribute__((unused)))
1714
1714
{
1715
1715
  store_now_in_TIME(&ltime);
1716
1716
  to->set_notnull();
2040
2040
 
2041
2041
/* Here arg[1] is a Item_interval object */
2042
2042
 
2043
 
bool Item_date_add_interval::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
 
2043
bool Item_date_add_interval::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((unused)))
2044
2044
{
2045
2045
  INTERVAL interval;
2046
2046
 
2491
2491
}
2492
2492
 
2493
2493
 
2494
 
bool Item_date_typecast::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
 
2494
bool Item_date_typecast::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((unused)))
2495
2495
{
2496
2496
  bool res= get_arg0_date(ltime, TIME_FUZZY_DATE);
2497
2497
  ltime->hour= ltime->minute= ltime->second= ltime->second_part= 0;