[PATCH 10/11] test/member: fix build with clang 15
David Marchand
david.marchand at redhat.com
Fri Nov 18 09:53:12 CET 2022
This local variable hides the more global one.
The original intent was probably to use the global one.
Fixes: 0cc67a96e486 ("test/member: add functional and perf tests")
Cc: stable at dpdk.org
Signed-off-by: David Marchand <david.marchand at redhat.com>
---
app/test/test_member.c | 1 -
app/test/test_member_perf.c | 1 -
2 files changed, 2 deletions(-)
diff --git a/app/test/test_member.c b/app/test/test_member.c
index c1b6a7d8b9..4a93f8bff4 100644
--- a/app/test/test_member.c
+++ b/app/test/test_member.c
@@ -573,7 +573,6 @@ setup_keys_and_data(void)
qsort(generated_keys, MAX_ENTRIES, KEY_SIZE, key_compare);
/* Sift through the list of keys and look for duplicates */
- int num_duplicates = 0;
for (i = 0; i < MAX_ENTRIES - 1; i++) {
if (memcmp(generated_keys[i], generated_keys[i + 1],
KEY_SIZE) == 0) {
diff --git a/app/test/test_member_perf.c b/app/test/test_member_perf.c
index 7b6adf913e..2f79888fbd 100644
--- a/app/test/test_member_perf.c
+++ b/app/test/test_member_perf.c
@@ -178,7 +178,6 @@ setup_keys_and_data(struct member_perf_params *params, unsigned int cycle,
qsort(keys, KEYS_TO_ADD, MAX_KEYSIZE, key_compare);
/* Sift through the list of keys and look for duplicates */
- int num_duplicates = 0;
for (i = 0; i < KEYS_TO_ADD - 1; i++) {
if (memcmp(keys[i], keys[i + 1],
params->key_size) == 0) {
--
2.38.1
More information about the stable
mailing list