From: Ivan Maidanski Date: Fri, 21 Oct 2016 20:34:41 +0000 (+0300) Subject: Eliminate 'value of CLOCK_TYPE unknown' cppcheck info message X-Git-Tag: v8.0.0~1084 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5d59443fb17a474909e89f25238b02f4734ac5e7;p=platform%2Fupstream%2Flibgc.git Eliminate 'value of CLOCK_TYPE unknown' cppcheck info message * tests/disclaim_bench.c (main): Replace #ifdef CLOCK_TYPE with #ifndef NO_CLOCK. --- 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