mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 03:05:33 +02:00
Fix compilation on Windows broken with the push of bug#16420.
Fix three compilation warnings. sql/event_data_objects.cc: Fix compilation warnings. sql/event_queue.cc: Fix compilation warning: reimplement event_queue_element_compare_q() properly. Use set_timespec() to initialize struct timespec.
This commit is contained in:
parent
354e15f068
commit
998260ae5a
2 changed files with 7 additions and 11 deletions
|
|
@ -1293,7 +1293,7 @@ bool get_next_time(const Time_zone *time_zone, my_time_t *next,
|
|||
time, and this will greatly reduce the effect of the
|
||||
optimization. So instead we keep the code simple and clean.
|
||||
*/
|
||||
interval.month= diff_months - diff_months % months;
|
||||
interval.month= (ulong) (diff_months - diff_months % months);
|
||||
next_time= add_interval(&local_start, time_zone,
|
||||
INTERVAL_MONTH, interval);
|
||||
if (next_time == 0)
|
||||
|
|
@ -1301,7 +1301,7 @@ bool get_next_time(const Time_zone *time_zone, my_time_t *next,
|
|||
|
||||
if (next_time <= time_now)
|
||||
{
|
||||
interval.month= months;
|
||||
interval.month= (ulong) months;
|
||||
next_time= add_interval(&local_start, time_zone,
|
||||
INTERVAL_MONTH, interval);
|
||||
if (next_time == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue