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(
int sts_sync_level,
uint flag
) {
int get_type __attribute__ ((unused));
#ifdef WITH_PARTITION_STORAGE_ENGINE
int get_type;
#endif
int error_num = 0;
bool need_to_get = TRUE;
DBUG_ENTER("spider_get_sts");
......@@ -7767,7 +7769,9 @@ int spider_get_crd(
#endif
int crd_sync_level
) {
int get_type __attribute__ ((unused));
#ifdef WITH_PARTITION_STORAGE_ENGINE
int get_type;
#endif
int error_num = 0;
bool need_to_get = TRUE;
DBUG_ENTER("spider_get_crd");
......@@ -9273,7 +9277,9 @@ int spider_discover_table_structure(
#endif
Open_tables_backup open_tables_backup;
TABLE *table_tables;
uint str_len __attribute__ ((unused));
#ifdef WITH_PARTITION_STORAGE_ENGINE
uint str_len;
#endif
char buf[MAX_FIELD_WIDTH];
spider_string str(buf, sizeof(buf), system_charset_info);
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