Skip to content

Commit

Permalink
test-throttle: don't shadow 'index' variable in do_test_accounting()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bertogg authored and Markus Armbruster committed Sep 29, 2023
1 parent 8cf52ff commit d857309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/test-throttle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d857309

Please sign in to comment.