Skip to content

Commit

Permalink
use ifdef for unused attributes for Spider
Browse files Browse the repository at this point in the history
  • Loading branch information
Kentoku committed Jun 5, 2020
1 parent e954d9d commit 418f161
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions storage/spider/spd_table.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 418f161

Please sign in to comment.