diff options
author | unknown <sanja@askmonty.org> | 2011-10-18 13:44:12 +0300 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2011-10-18 13:44:12 +0300 |
commit | 255c04aed8b4159ac8402bc80bab3771c0236d40 (patch) | |
tree | 8d947e1a98f7f3eb9dce22ee44e49276d357ea4f /sql/sql_show.cc | |
parent | 9f6e24a05a32c147f292cd6260d63a31cb8cd9db (diff) | |
download | mariadb-git-255c04aed8b4159ac8402bc80bab3771c0236d40.tar.gz |
Compiler warning about assigned but not used variables fixed.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 08cdf7459fd..41e1734f346 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -1274,7 +1274,7 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet, handler *file= table->file; TABLE_SHARE *share= table->s; HA_CREATE_INFO create_info; - bool show_table_options= FALSE; + bool show_table_options __attribute__ ((unused))= FALSE; bool foreign_db_mode= (thd->variables.sql_mode & (MODE_POSTGRESQL | MODE_ORACLE | MODE_MSSQL | @@ -1507,7 +1507,9 @@ int store_create_info(THD *thd, TABLE_LIST *table_list, String *packet, packet->append(STRING_WITH_LEN("\n)")); if (!(thd->variables.sql_mode & MODE_NO_TABLE_OPTIONS) && !foreign_db_mode) { +#ifdef WITH_PARTITION_STORAGE_ENGINE show_table_options= TRUE; +#endif /* Get possible table space definitions and append them to the CREATE TABLE statement |