Commit cc33cf29 authored by unknown's avatar unknown

item_func.cc:

  Fixed compiler warnings.


sql/item_func.cc:
  Fixed compiler warnings.
parent 187ccf4b
...@@ -2328,7 +2328,7 @@ double Item_func_min_max::val_real() ...@@ -2328,7 +2328,7 @@ double Item_func_min_max::val_real()
double value=0.0; double value=0.0;
if (compare_as_dates) if (compare_as_dates)
{ {
ulonglong result; ulonglong result= 0;
(void)cmp_datetimes(&result); (void)cmp_datetimes(&result);
return (double)result; return (double)result;
} }
...@@ -2355,7 +2355,7 @@ longlong Item_func_min_max::val_int() ...@@ -2355,7 +2355,7 @@ longlong Item_func_min_max::val_int()
longlong value=0; longlong value=0;
if (compare_as_dates) if (compare_as_dates)
{ {
ulonglong result; ulonglong result= 0;
(void)cmp_datetimes(&result); (void)cmp_datetimes(&result);
return (longlong)result; return (longlong)result;
} }
...@@ -2384,7 +2384,7 @@ my_decimal *Item_func_min_max::val_decimal(my_decimal *dec) ...@@ -2384,7 +2384,7 @@ my_decimal *Item_func_min_max::val_decimal(my_decimal *dec)
if (compare_as_dates) if (compare_as_dates)
{ {
ulonglong value; ulonglong value= 0;
(void)cmp_datetimes(&value); (void)cmp_datetimes(&value);
ulonglong2decimal(value, dec); ulonglong2decimal(value, dec);
return dec; return dec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment