From 47573038736b96e2a353a25ed3c788dcb77d8fcb Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 5 Jul 2016 14:19:31 -0400 Subject: Fix all -Wshadow warnings on Linux This is a partial fix for 18902. --- src/test/bench.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/test/bench.c') diff --git a/src/test/bench.c b/src/test/bench.c index 5595988f31..f1cf715f30 100644 --- a/src/test/bench.c +++ b/src/test/bench.c @@ -662,7 +662,6 @@ main(int argc, const char **argv) { int i; int list=0, n_enabled=0; - benchmark_t *b; char *errmsg; or_options_t *options; @@ -672,10 +671,10 @@ main(int argc, const char **argv) if (!strcmp(argv[i], "--list")) { list = 1; } else { - benchmark_t *b = find_benchmark(argv[i]); + benchmark_t *benchmark = find_benchmark(argv[i]); ++n_enabled; - if (b) { - b->enabled = 1; + if (benchmark) { + benchmark->enabled = 1; } else { printf("No such benchmark as %s\n", argv[i]); } @@ -700,7 +699,7 @@ main(int argc, const char **argv) return 1; } - for (b = benchmarks; b->name; ++b) { + for (benchmark_t *b = benchmarks; b->name; ++b) { if (b->enabled || n_enabled == 0) { printf("===== %s =====\n", b->name); if (!list) -- cgit v1.2.3-54-g00ecf