mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix -Wunused for CMAKE_BUILD_TYPE=RelWithDebInfo
For release builds, do not declare unused variables. unpack_row(): Omit a debug-only variable from WSREP diagnostic message. create_wsrep_THD(): Fix -Wmaybe-uninitialized for the PSI_thread_key.
This commit is contained in:
@ -60,7 +60,7 @@ bool Sql_cmd_alter_table_exchange_partition::execute(THD *thd)
|
||||
referenced from this structure will be modified.
|
||||
@todo move these into constructor...
|
||||
*/
|
||||
HA_CREATE_INFO create_info(lex->create_info);
|
||||
IF_DBUG(HA_CREATE_INFO create_info(lex->create_info);,)
|
||||
Alter_info alter_info(lex->alter_info, thd->mem_root);
|
||||
ulong priv_needed= ALTER_ACL | DROP_ACL | INSERT_ACL | CREATE_ACL;
|
||||
|
||||
|
Reference in New Issue
Block a user