File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7619,7 +7619,9 @@ int spider_get_sts(
7619
7619
int sts_sync_level,
7620
7620
uint flag
7621
7621
) {
7622
- int get_type __attribute__ ((unused));
7622
+ #ifdef WITH_PARTITION_STORAGE_ENGINE
7623
+ int get_type;
7624
+ #endif
7623
7625
int error_num = 0 ;
7624
7626
bool need_to_get = TRUE ;
7625
7627
DBUG_ENTER (" spider_get_sts" );
@@ -7767,7 +7769,9 @@ int spider_get_crd(
7767
7769
#endif
7768
7770
int crd_sync_level
7769
7771
) {
7770
- int get_type __attribute__ ((unused));
7772
+ #ifdef WITH_PARTITION_STORAGE_ENGINE
7773
+ int get_type;
7774
+ #endif
7771
7775
int error_num = 0 ;
7772
7776
bool need_to_get = TRUE ;
7773
7777
DBUG_ENTER (" spider_get_crd" );
@@ -9273,7 +9277,9 @@ int spider_discover_table_structure(
9273
9277
#endif
9274
9278
Open_tables_backup open_tables_backup;
9275
9279
TABLE *table_tables;
9276
- uint str_len __attribute__ ((unused));
9280
+ #ifdef WITH_PARTITION_STORAGE_ENGINE
9281
+ uint str_len;
9282
+ #endif
9277
9283
char buf[MAX_FIELD_WIDTH];
9278
9284
spider_string str (buf, sizeof (buf), system_charset_info);
9279
9285
DBUG_ENTER (" spider_discover_table_structure" );
You can’t perform that action at this time.
0 commit comments