diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2021-08-25 09:12:27 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2021-08-25 09:12:27 +0300 |
commit | 8958f05e63f2cc059025c821b5cac8e54d8b6c91 (patch) | |
tree | 4e04834b4457391ed426905dd06149faf0b5b8bf | |
parent | e696e9e63f0ffb9867c24bcfb1aee0e62a233874 (diff) | |
download | mariadb-git-8958f05e63f2cc059025c821b5cac8e54d8b6c91.tar.gz |
Fix clang -Wunused-but-set-variable
-rw-r--r-- | storage/maria/test_ma_backup.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/storage/maria/test_ma_backup.c b/storage/maria/test_ma_backup.c index 2a9a6704ecb..241763ecd32 100644 --- a/storage/maria/test_ma_backup.c +++ b/storage/maria/test_ma_backup.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2018 MariaDB corporation +/* Copyright (C) 2018, 2021, MariaDB corporation. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -178,7 +178,6 @@ static int create_test_table(const char *table_name, int type_of_table) int key_field=FIELD_SKIP_PRESPACE,extra_field=FIELD_SKIP_ENDSPACE; int key_type=HA_KEYTYPE_NUM; int create_flag=0; - uint offset_to_key; uint pack_seg=0, pack_keys= 0; uint key_length; uchar record[MAX_REC_LENGTH]; @@ -303,10 +302,6 @@ static int create_test_table(const char *table_name, int type_of_table) else uniques=0; - offset_to_key= MY_TEST(null_fields); - if (key_field == FIELD_BLOB || key_field == FIELD_VARCHAR) - offset_to_key+= 2; - if (!silent) printf("- Creating Aria file\n"); create_info.max_rows= 0; |