From: Ivan Maidanski Date: Wed, 19 Oct 2016 08:09:33 +0000 (+0300) Subject: Fix local variable declarations in disclaim_bench X-Git-Tag: v8.0.0~1092 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d040133bc12c7d5f9adad2a681a066abb453f786;p=gc Fix local variable declarations in disclaim_bench * tests/disclaim_bench.c (main): Place (move) tI, tF local variable declarations (in the block) before any statement. --- diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index bf9048f9..18c6e60b 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -119,12 +119,12 @@ int main(int argc, char **argv) printf("\t\t\tfin. ratio time/s time/fin.\n"); for (model = model_min; model <= model_max; ++model) { double t = 0.0; - free_count = 0; - # ifdef CLOCK_TYPE CLOCK_TYPE tI, tF; + GET_TIME(tI); # endif + free_count = 0; for (i = 0; i < ALLOC_CNT; ++i) { int k = rand() % KEEP_CNT; keep_arr[k] = testobj_new(model);