diff options
author | Eugene Kosov <claprix@yandex.ru> | 2021-06-15 13:09:15 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2021-06-15 13:10:16 +0300 |
commit | 1c35a3f6fd92704d7a135a81c7752f5058aaede5 (patch) | |
tree | 669442942fb28a036f2423029578a92508e3b0aa /storage/myisam | |
parent | 7d591cf85090db52478facca4a0c03a2a56aa585 (diff) | |
download | mariadb-git-1c35a3f6fd92704d7a135a81c7752f5058aaede5.tar.gz |
fix clang build
a new warning -Wunused-but-set-variable was introduced recently to clang
Diffstat (limited to 'storage/myisam')
-rw-r--r-- | storage/myisam/mi_check.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/myisam/mi_check.c b/storage/myisam/mi_check.c index d9b9bb5af4a..8bae409d1e6 100644 --- a/storage/myisam/mi_check.c +++ b/storage/myisam/mi_check.c @@ -2614,7 +2614,7 @@ int mi_repair_parallel(HA_CHECK *param, register MI_INFO *info, const char * name, int rep_quick) { int got_error; - uint i,key, total_key_length, istep; + uint i,key, istep; ulong rec_length; ha_rows start_records; my_off_t new_header_length,del; @@ -2800,7 +2800,9 @@ int mi_repair_parallel(HA_CHECK *param, register MI_INFO *info, mi_check_print_error(param,"Not enough memory for key!"); goto err; } - total_key_length=0; +#ifdef USING_SECOND_APPROACH + uint total_key_length=0; +#endif rec_per_key_part= param->rec_per_key_part; info->state->records=info->state->del=share->state.split=0; info->state->empty=0; @@ -2869,7 +2871,9 @@ int mi_repair_parallel(HA_CHECK *param, register MI_INFO *info, if (keyseg->flag & HA_NULL_PART) sort_param[i].key_length++; } +#ifdef USING_SECOND_APPROACH total_key_length+=sort_param[i].key_length; +#endif if (sort_param[i].keyinfo->flag & HA_FULLTEXT) { |