~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_timefunc.cc

Bunch of warning cleanups.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1471
1471
}
1472
1472
 
1473
1473
 
1474
 
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
 
1474
bool Item_func_from_days::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
1475
1475
{
1476
1476
  longlong value=args[0]->val_int();
1477
1477
  if ((null_value=args[0]->null_value))
1545
1545
}
1546
1546
 
1547
1547
 
1548
 
String *Item_func_curtime::val_str(String *str)
 
1548
String *Item_func_curtime::val_str(String *str __attribute__((__unused__)))
1549
1549
{
1550
1550
  DBUG_ASSERT(fixed == 1);
1551
1551
  str_value.set(buff, buff_length, &my_charset_bin);
1594
1594
}
1595
1595
 
1596
1596
 
1597
 
String *Item_func_now::val_str(String *str)
 
1597
String *Item_func_now::val_str(String *str __attribute__((__unused__)))
1598
1598
{
1599
1599
  DBUG_ASSERT(fixed == 1);
1600
1600
  str_value.set(buff,buff_length, &my_charset_bin);
1651
1651
}
1652
1652
 
1653
1653
 
1654
 
int Item_func_now::save_in_field(Field *to, bool no_conversions)
 
1654
int Item_func_now::save_in_field(Field *to, bool no_conversions __attribute__((__unused__)))
1655
1655
{
1656
1656
  to->set_notnull();
1657
1657
  return to->store_time(&ltime, MYSQL_TIMESTAMP_DATETIME);
1670
1670
}
1671
1671
 
1672
1672
 
1673
 
String *Item_func_sysdate_local::val_str(String *str)
 
1673
String *Item_func_sysdate_local::val_str(String *str __attribute__((__unused__)))
1674
1674
{
1675
1675
  DBUG_ASSERT(fixed == 1);
1676
1676
  store_now_in_TIME(&ltime);
1713
1713
}
1714
1714
 
1715
1715
 
1716
 
int Item_func_sysdate_local::save_in_field(Field *to, bool no_conversions)
 
1716
int Item_func_sysdate_local::save_in_field(Field *to, bool no_conversions __attribute__((__unused__)))
1717
1717
{
1718
1718
  store_now_in_TIME(&ltime);
1719
1719
  to->set_notnull();
2043
2043
 
2044
2044
/* Here arg[1] is a Item_interval object */
2045
2045
 
2046
 
bool Item_date_add_interval::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
 
2046
bool Item_date_add_interval::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
2047
2047
{
2048
2048
  INTERVAL interval;
2049
2049
 
2494
2494
}
2495
2495
 
2496
2496
 
2497
 
bool Item_date_typecast::get_date(MYSQL_TIME *ltime, uint fuzzy_date)
 
2497
bool Item_date_typecast::get_date(MYSQL_TIME *ltime, uint fuzzy_date __attribute__((__unused__)))
2498
2498
{
2499
2499
  bool res= get_arg0_date(ltime, TIME_FUZZY_DATE);
2500
2500
  ltime->hour= ltime->minute= ltime->second= ltime->second_part= 0;