test-throttle: don't shadow 'index' variable in do_test_accounting()
PATCH 1/1 test-throttle: don't shadow 'index' variable in do_test_accounting()
Fixes build with -Wshadow=local
Signed-off-by Alberto Garcia <[email protected]>
--- tests/unit/test-throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/unit/test-throttle.c +1 -1
@@ -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; }
Signature · 1 line
2.39.2
Quoted 12 lines · Alberto Garcia
Fixes build with -Wshadow=local
Signed-off-by Alberto Garcia <[email protected]>--- tests/unit/test-throttle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tests/unit/test-throttle.c +0
-0
tests/unit/test-throttle.c static bool do_test_accounting(bool is_ops, /* are we testing bps or ops */ · line 630
Quoted 7 lines
tests/unit/test-throttle.c +1
-1@@ -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; }
Reviewed-by Markus Armbruster <[email protected]>
and queued, thanks!