1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-31545 Revert "Fix gcc warning for wsrep_plug"

This reverts commit 38fe266ea9.

The correct fix was pushed to the 10.4 branch
(fbc157ab33)
This commit is contained in:
Daniel Black
2023-08-30 15:17:07 +10:00
parent c438284863
commit 9b1b4a6f69

View File

@@ -6320,11 +6320,6 @@ 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);