From 38fe266ea9537acce888b210cb233f5854d7560e Mon Sep 17 00:00:00 2001 From: Vicentiu Ciorbaru Date: Mon, 5 Jun 2023 11:03:49 +0300 Subject: [PATCH] Fix gcc warning for wsrep_plug --- sql/sql_parse.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 1b9504abe07..8a8b4306921 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -6310,6 +6310,11 @@ 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);