From: Alberto Garcia Date: Fri, 22 Sep 2023 10:57:42 +0000 (+0200) Subject: test-throttle: don't shadow 'index' variable in do_test_accounting() X-Git-Tag: v8.2.0-rc0~96^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8573092a49b3133530ceee35846a54e600f8a73;p=thirdparty%2Fqemu.git test-throttle: don't shadow 'index' variable in do_test_accounting() Fixes build with -Wshadow=local Signed-off-by: Alberto Garcia Message-ID: <20230922105742.81317-1-berto@igalia.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- diff --git a/tests/unit/test-throttle.c b/tests/unit/test-throttle.c index cb587e33e73..ac35d65d19b 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 testing bps or ops */ throttle_config_init(&cfg); for (i = 0; i < 3; i++) { - BucketType index = to_test[is_ops][i]; + index = to_test[is_ops][i]; cfg.buckets[index].avg = avg; }