projects
/
platform
/
upstream
/
libgc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51f14f7
)
Eliminate 'value of CLOCK_TYPE unknown' cppcheck info message
author
Ivan Maidanski
<ivmai@mail.ru>
Fri, 21 Oct 2016 20:34:41 +0000
(23:34 +0300)
committer
Ivan Maidanski
<ivmai@mail.ru>
Fri, 21 Oct 2016 20:35:05 +0000
(23:35 +0300)
* tests/disclaim_bench.c (main): Replace #ifdef CLOCK_TYPE
with #ifndef NO_CLOCK.
tests/disclaim_bench.c
patch
|
blob
|
history
diff --git
a/tests/disclaim_bench.c
b/tests/disclaim_bench.c
index
c2a09aa
..
1a1f5a1
100644
(file)
--- 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;
-# if
def CLOCK_TYPE
+# if
ndef 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();
-# if
def CLOCK_TYPE
+# if
ndef NO_CLOCK
GET_TIME(tF);
t = MS_TIME_DIFF(tF, tI)*1e-3;
# endif