From 9d04bda265085e6f6bcaed242f7c8c8f63cbc16f Mon Sep 17 00:00:00 2001 From: David Marchand Date: Fri, 18 Nov 2022 09:53:11 +0100 Subject: [PATCH] test/efd: fix build with clang 15 [ upstream commit 94ec062953778f986af4261c7f6eb31af7c84202 ] This local variable hides the more global one. The original intent was probably to use the global one. Fixes: 0e925aef2779 ("app/test: add EFD functional and perf tests") Signed-off-by: David Marchand Acked-by: Tyler Retzlaff --- app/test/test_efd_perf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/app/test/test_efd_perf.c b/app/test/test_efd_perf.c index c7d6e1e426..3ed4122b60 100644 --- a/app/test/test_efd_perf.c +++ b/app/test/test_efd_perf.c @@ -143,7 +143,6 @@ setup_keys_and_data(struct efd_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) { /* This key already exists, try again */