From d866fc3d9f4033702677ab75d732dcd6e493777d Mon Sep 17 00:00:00 2001 From: Laurynas Biveinis Date: Thu, 25 Aug 2016 10:29:21 +0300 Subject: [PATCH] Fix bug 1616768 (-Wempty-body warning regression in dispatch_command) Add braces around DEBUG_SYNC. --- sql/sql_parse.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 1db33cb40da1..e3fc386cfa57 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1474,7 +1474,9 @@ bool dispatch_command(enum enum_server_command command, THD *thd, thd_proc_info(thd, "cleaning up"); if (thd->lex->sql_command == SQLCOM_CREATE_TABLE) + { DEBUG_SYNC(thd, "dispatch_create_table_command_before_thd_root_free"); + } thd->reset_query(); thd->command=COM_SLEEP; dec_thread_running();