From nobody Fri May 17 09:18:29 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1695380353725404.70577737166093; Fri, 22 Sep 2023 03:59:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjdrk-0000tc-Md; Fri, 22 Sep 2023 06:58:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjdrh-0000t9-5s; Fri, 22 Sep 2023 06:58:30 -0400 Received: from fanzine.igalia.com ([178.60.130.6] helo=fanzine2.igalia.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qjdrf-0005zQ-3v; Fri, 22 Sep 2023 06:58:28 -0400 Received: from 226.pool62-37-3.static.orange.es ([62.37.3.226] helo=zeus.local) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1qjdrR-007H9m-24; Fri, 22 Sep 2023 12:58:13 +0200 Received: from berto by zeus.local with local (Exim 4.96) (envelope-from ) id 1qjdrQ-000LAE-0m; Fri, 22 Sep 2023 12:58:12 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TBFtYTWQF6HhILnJfbonAIbFAQ8zCaxquhaP2Tz4reU=; b=dPuVnB07yLf4Qx4Z53kyPUqSlO Uli6ETALqZ0XEFZDfAovj4QflFeRDmlgunbL2GbgbK0HijSd7vGC2WwKGuZqZqRdFbfpuY/zXJ//e EF5phcifFJGx3kt0Toii3kE55gBGI+raz48Y7oiCZeAiXDqXwAX0R6xUR+p6qdispvwxK5PqgX4Z5 HpekLDuiZe0N5To+Kinf6j7WGWBFlVjwaq9f4mAPbSPb24/qjuu91ZUWtiHhrSiny9u/+uCfewBZH HbAmSCb/tziMjZPVDTRx0FVc7icakQ0ttq9Kjqn5KrN6LUgQ+G9fYnfBnYTKX8rcSRgz+CK1o0FjD ZspD9ymQ==; From: Alberto Garcia To: qemu-devel@nongnu.org Cc: Alberto Garcia , qemu-block@nongnu.org, Markus Armbruster Subject: [PATCH] test-throttle: don't shadow 'index' variable in do_test_accounting() Date: Fri, 22 Sep 2023 12:57:42 +0200 Message-Id: <20230922105742.81317-1-berto@igalia.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=178.60.130.6; envelope-from=berto@igalia.com; helo=fanzine2.igalia.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1695380357546100003 Content-Type: text/plain; charset="utf-8" Fixes build with -Wshadow=3Dlocal Signed-off-by: Alberto Garcia Reviewed-by: Markus Armbruster --- tests/unit/test-throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/test-throttle.c b/tests/unit/test-throttle.c index cb587e33e7..ac35d65d19 100644 --- a/tests/unit/test-throttle.c +++ b/tests/unit/test-throttle.c @@ -625,7 +625,7 @@ static bool do_test_accounting(bool is_ops, /* are we t= esting bps or ops */ throttle_config_init(&cfg); =20 for (i =3D 0; i < 3; i++) { - BucketType index =3D to_test[is_ops][i]; + index =3D to_test[is_ops][i]; cfg.buckets[index].avg =3D avg; } =20 --=20 2.39.2