test-throttle: don't shadow 'index' variable in do_test_accounting()

Fixes build with -Wshadow=local

Signed-off-by: Alberto Garcia <berto@igalia.com>
Message-ID: <20230922105742.81317-1-berto@igalia.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
Alberto Garcia 2023-09-22 12:57:42 +02:00 committed by Markus Armbruster
parent 8cf52ff5c7
commit d8573092a4

View file

@ -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;
}