projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf52ff
)
test-throttle: don't shadow 'index' variable in do_test_accounting()
author
Alberto Garcia
<berto@igalia.com>
Fri, 22 Sep 2023 10:57:42 +0000
(12:57 +0200)
committer
Markus Armbruster
<armbru@redhat.com>
Fri, 29 Sep 2023 08:07:18 +0000
(10:07 +0200)
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>
tests/unit/test-throttle.c
patch
|
blob
|
history
diff --git
a/tests/unit/test-throttle.c
b/tests/unit/test-throttle.c
index cb587e33e73622bbef4b3b966cbe27beaeee4c26..ac35d65d19b4d45db8f6550ca4b67062e0e729e3 100644
(file)
--- 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;
}