From 5d59443fb17a474909e89f25238b02f4734ac5e7 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 21 Oct 2016 23:34:41 +0300 Subject: [PATCH] Eliminate 'value of CLOCK_TYPE unknown' cppcheck info message * tests/disclaim_bench.c (main): Replace #ifdef CLOCK_TYPE with #ifndef NO_CLOCK. --- tests/disclaim_bench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/disclaim_bench.c b/tests/disclaim_bench.c index c2a09aa..1a1f5a1 100644 --- a/tests/disclaim_bench.c +++ b/tests/disclaim_bench.c @@ -119,7 +119,7 @@ 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; -# ifdef CLOCK_TYPE +# ifndef NO_CLOCK CLOCK_TYPE tI, tF; GET_TIME(tI); @@ -130,7 +130,7 @@ int main(int argc, char **argv) keep_arr[k] = testobj_new(model); } GC_gcollect(); -# ifdef CLOCK_TYPE +# ifndef NO_CLOCK GET_TIME(tF); t = MS_TIME_DIFF(tF, tI)*1e-3; # endif -- 2.7.4