Skip to content

Commit 4ca561e

Browse files
Dmitry LenevDmitry Lenev
authored andcommitted
Suppress false-positive uninitialized variable use
warnings in Event_queue::get_top_for_execution_if_time() method which has caused -Werror build to fail.
1 parent b019ba2 commit 4ca561e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sql/event_queue.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,8 +568,8 @@ Event_queue::get_top_for_execution_if_time(THD *thd,
568568
{
569569
bool ret= FALSE;
570570
*event_name= NULL;
571-
my_time_t last_executed;
572-
int status;
571+
my_time_t UNINIT_VAR(last_executed);
572+
int UNINIT_VAR(status);
573573
DBUG_ENTER("Event_queue::get_top_for_execution_if_time");
574574

575575
LOCK_QUEUE_DATA();

0 commit comments

Comments
 (0)