Commit d0ce263f authored by mats@romeo.(none)'s avatar mats@romeo.(none)

Eliminating some compiler warnings.

parent c9a7855f
...@@ -3683,6 +3683,7 @@ Rotate_log_event::do_shall_skip(RELAY_LOG_INFO *rli) ...@@ -3683,6 +3683,7 @@ Rotate_log_event::do_shall_skip(RELAY_LOG_INFO *rli)
return Log_event::EVENT_SKIP_IGNORE; return Log_event::EVENT_SKIP_IGNORE;
} }
DBUG_ASSERT(0); DBUG_ASSERT(0);
return Log_event::EVENT_SKIP_NOT; // To keep compiler happy
} }
#endif #endif
......
...@@ -1722,7 +1722,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli) ...@@ -1722,7 +1722,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
} }
if (ev) if (ev)
{ {
int type_code = ev->get_type_code(); int const type_code= ev->get_type_code();
int exec_res= 0; int exec_res= 0;
/* /*
...@@ -1828,7 +1828,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli) ...@@ -1828,7 +1828,7 @@ static int exec_relay_log_event(THD* thd, RELAY_LOG_INFO* rli)
used to read info about the relay log's format; it will be deleted when used to read info about the relay log's format; it will be deleted when
the SQL thread does not need it, i.e. when this thread terminates. the SQL thread does not need it, i.e. when this thread terminates.
*/ */
if (ev->get_type_code() != FORMAT_DESCRIPTION_EVENT) if (type_code != FORMAT_DESCRIPTION_EVENT)
{ {
DBUG_PRINT("info", ("Deleting the event after it has been executed")); DBUG_PRINT("info", ("Deleting the event after it has been executed"));
delete ev; delete ev;
......
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