Commit 38fe266e authored by Vicentiu Ciorbaru's avatar Vicentiu Ciorbaru Committed by Monty

Fix gcc warning for wsrep_plug

parent f20d556f
...@@ -6310,6 +6310,11 @@ static bool __attribute__ ((noinline)) ...@@ -6310,6 +6310,11 @@ static bool __attribute__ ((noinline))
execute_show_status(THD *thd, TABLE_LIST *all_tables) execute_show_status(THD *thd, TABLE_LIST *all_tables)
{ {
bool res; bool res;
#if defined(__GNUC__) && (__GNUC__ >= 13)
#pragma GCC diagnostic ignored "-Wdangling-pointer"
#endif
system_status_var old_status_var= thd->status_var; system_status_var old_status_var= thd->status_var;
thd->initial_status_var= &old_status_var; thd->initial_status_var= &old_status_var;
WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW); WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);
......
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