Commit 418f1611 authored by Kentoku SHIBA's avatar Kentoku SHIBA

use ifdef for unused attributes for Spider

parent e954d9de
...@@ -7619,7 +7619,9 @@ int spider_get_sts( ...@@ -7619,7 +7619,9 @@ int spider_get_sts(
int sts_sync_level, int sts_sync_level,
uint flag uint flag
) { ) {
int get_type __attribute__ ((unused)); #ifdef WITH_PARTITION_STORAGE_ENGINE
int get_type;
#endif
int error_num = 0; int error_num = 0;
bool need_to_get = TRUE; bool need_to_get = TRUE;
DBUG_ENTER("spider_get_sts"); DBUG_ENTER("spider_get_sts");
...@@ -7767,7 +7769,9 @@ int spider_get_crd( ...@@ -7767,7 +7769,9 @@ int spider_get_crd(
#endif #endif
int crd_sync_level int crd_sync_level
) { ) {
int get_type __attribute__ ((unused)); #ifdef WITH_PARTITION_STORAGE_ENGINE
int get_type;
#endif
int error_num = 0; int error_num = 0;
bool need_to_get = TRUE; bool need_to_get = TRUE;
DBUG_ENTER("spider_get_crd"); DBUG_ENTER("spider_get_crd");
...@@ -9273,7 +9277,9 @@ int spider_discover_table_structure( ...@@ -9273,7 +9277,9 @@ int spider_discover_table_structure(
#endif #endif
Open_tables_backup open_tables_backup; Open_tables_backup open_tables_backup;
TABLE *table_tables; TABLE *table_tables;
uint str_len __attribute__ ((unused)); #ifdef WITH_PARTITION_STORAGE_ENGINE
uint str_len;
#endif
char buf[MAX_FIELD_WIDTH]; char buf[MAX_FIELD_WIDTH];
spider_string str(buf, sizeof(buf), system_charset_info); spider_string str(buf, sizeof(buf), system_charset_info);
DBUG_ENTER("spider_discover_table_structure"); DBUG_ENTER("spider_discover_table_structure");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment