summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-09-30 12:48:26 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2019-09-30 12:49:53 +0300
commit46b785262b9f03c4d715fa8ebbeb0d9bc6bb71c0 (patch)
treec3b3d8d820d9ff8ff37ae4720ed961fc98bbff95 /sql/sql_table.cc
parentbc70862e13f32756695d5781c793f2525aeb7187 (diff)
downloadmariadb-git-46b785262b9f03c4d715fa8ebbeb0d9bc6bb71c0.tar.gz
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.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 761e14e31d0..7b71973887e 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -10606,10 +10606,10 @@ bool Sql_cmd_create_table::execute(THD *thd)
{
DBUG_ENTER("Sql_cmd_create_table::execute");
LEX *lex= thd->lex;
- TABLE_LIST *all_tables= lex->query_tables;
SELECT_LEX *select_lex= &lex->select_lex;
TABLE_LIST *first_table= select_lex->table_list.first;
- DBUG_ASSERT(first_table == all_tables && first_table != 0);
+ DBUG_ASSERT(first_table == lex->query_tables);
+ DBUG_ASSERT(first_table != 0);
bool link_to_local;
TABLE_LIST *create_table= first_table;
TABLE_LIST *select_tables= lex->create_last_non_select_table->next_global;