summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-07-21 00:45:08 +0200
committerunknown <serg@serg.mylan>2004-07-21 00:45:08 +0200
commitd0c693999ba7226e33cb55b74bcc2427fabfd02f (patch)
tree968e5d9326fe607f5ba3a390c62a22f31509d343 /sql/item_timefunc.cc
parent362ce6a8aa9db55c5dd0947e997a4a13e7b15b5e (diff)
downloadmariadb-git-d0c693999ba7226e33cb55b74bcc2427fabfd02f.tar.gz
misc fixes for compile-time errors
sql/item_sum.cc: "unused variable" warning sql/item_timefunc.cc: "unused variable" warning sql/log_event.h: const bool is_valid() -> bool is_valid() const sql/opt_range.cc: cast log's argument to double (otherwise an error on some compilers) sql/opt_range.h: get_quick_select_for_ref should be declared in the global scope to be visible.
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index e0979528b54..5aa14010058 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -2519,7 +2519,6 @@ longlong Item_func_timestamp_diff::val_int()
uint year;
uint year_beg, year_end, month_beg, month_end;
uint diff_days= (uint) (seconds/86400L);
- uint diff_months= 0;
uint diff_years= 0;
if (neg == -1)
{