diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index c3d8664639c..abcd690ba8a 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -6320,11 +6320,6 @@ static bool __attribute__ ((noinline)) execute_show_status(THD *thd, TABLE_LIST *all_tables) { bool res; - -#if defined(__GNUC__) && (__GNUC__ >= 13) -#pragma GCC diagnostic ignored "-Wdangling-pointer" -#endif - system_status_var old_status_var= thd->status_var; thd->initial_status_var= &old_status_var; WSREP_SYNC_WAIT(thd, WSREP_SYNC_WAIT_BEFORE_SHOW);