Skip to content

Commit 418f161

Browse files
committed
use ifdef for unused attributes for Spider
1 parent e954d9d commit 418f161

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

storage/spider/spd_table.cc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7619,7 +7619,9 @@ int spider_get_sts(
76197619
int sts_sync_level,
76207620
uint flag
76217621
) {
7622-
int get_type __attribute__ ((unused));
7622+
#ifdef WITH_PARTITION_STORAGE_ENGINE
7623+
int get_type;
7624+
#endif
76237625
int error_num = 0;
76247626
bool need_to_get = TRUE;
76257627
DBUG_ENTER("spider_get_sts");
@@ -7767,7 +7769,9 @@ int spider_get_crd(
77677769
#endif
77687770
int crd_sync_level
77697771
) {
7770-
int get_type __attribute__ ((unused));
7772+
#ifdef WITH_PARTITION_STORAGE_ENGINE
7773+
int get_type;
7774+
#endif
77717775
int error_num = 0;
77727776
bool need_to_get = TRUE;
77737777
DBUG_ENTER("spider_get_crd");
@@ -9273,7 +9277,9 @@ int spider_discover_table_structure(
92739277
#endif
92749278
Open_tables_backup open_tables_backup;
92759279
TABLE *table_tables;
9276-
uint str_len __attribute__ ((unused));
9280+
#ifdef WITH_PARTITION_STORAGE_ENGINE
9281+
uint str_len;
9282+
#endif
92779283
char buf[MAX_FIELD_WIDTH];
92789284
spider_string str(buf, sizeof(buf), system_charset_info);
92799285
DBUG_ENTER("spider_discover_table_structure");

0 commit comments

Comments
 (0)