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 2C040A0542; Fri, 18 Nov 2022 09:56:00 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A848442D58; Fri, 18 Nov 2022 09:55:35 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id 97C3D42D5D for ; Fri, 18 Nov 2022 09:55:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668761734; 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=aRBJKh2QZHNS2MAcZvBCQk0zla4FywNluXEZyk6pUsk=; b=IblpCEJgBfz9O8tkyraUJMDjnnSGg3MLQ/dpCSeIqoNukGP6Ys75Ew5v1DcpQz7wEk6hdU Z69p2kKL4dkOItHSHN/ZMVbOn2EI0NJi2o+yvMsA1HShl2g96qug7Xds06NZyd5n5WV2K2 LPnPm31lSpsCz2we0TpAdxTXBWR9h7g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-523-fJiGka8MPvGIphuzQ-JKzA-1; Fri, 18 Nov 2022 03:55:30 -0500 X-MC-Unique: fJiGka8MPvGIphuzQ-JKzA-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 4AF38101A54E; Fri, 18 Nov 2022 08:55:30 +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 319FD40E9920; Fri, 18 Nov 2022 08:55:29 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: stable@dpdk.org, Yipeng Wang , Sameh Gobriel , Pablo de Lara Subject: [PATCH 10/11] test/member: fix build with clang 15 Date: Fri, 18 Nov 2022 09:53:12 +0100 Message-Id: <20221118085313.2118977-11-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.1 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: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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@dpdk.org Signed-off-by: David Marchand --- 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