From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EAB1EA0542 for ; Fri, 18 Nov 2022 09:55:34 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7947E42D5A; Fri, 18 Nov 2022 09:55:34 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 2C9AF42D29 for ; Fri, 18 Nov 2022 09:55:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wKEYdX3u5XQfLLQNkdrRDTMFdVLz2mwx5CSv678XW2U=; b=PzJaKYE39cPgLgYAbAowFajPq1mX+WL3uL2q7UWDdQ2lIWOt5FQS8JvTajk0i0X3PIS2RV muZqpS+HLNS+tLgzgFUdgNmimurT6cnGt5UhrxSOLTJrFP1ZIQHD/T4ReksZxd/90VKeVW L3twLnIFF4xzoJs4OGnpHON3jXdYLG0= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-94-BslzbZ3YPImm1B0VeSk6ag-1; Fri, 18 Nov 2022 03:55:27 -0500 X-MC-Unique: BslzbZ3YPImm1B0VeSk6ag-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0DAF72932488; Fri, 18 Nov 2022 08:55:27 +0000 (UTC) Received: from localhost.localdomain (ovpn-192-54.brq.redhat.com [10.40.192.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0CC742166B29; Fri, 18 Nov 2022 08:55:24 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Byron Marohn , Yipeng Wang , Saikrishna Edupuganti , Karla Saur , Christian Maciocco , Pablo de Lara Subject: [PATCH 09/11] test/efd: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:11 +0100 Message-Id: <20221118085313.2118977-10-david.marchand@redhat.com> In-Reply-To: <20221118085313.2118977-1-david.marchand@redhat.com> References: <20221118085313.2118977-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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") Cc: stable@dpdk.org Signed-off-by: David Marchand --- 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 d7f4d83549..4d04ed93e3 100644 --- a/app/test/test_efd_perf.c +++ b/app/test/test_efd_perf.c @@ -153,7 +153,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 */ -- 2.38.1