Fix invalid initializer of CLOCK_TYPE variables if BSD_TIME
authorIvan Maidanski <ivmai@mail.ru>
Sat, 5 Jan 2019 08:52:53 +0000 (11:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 5 Jan 2019 09:02:55 +0000 (12:02 +0300)
commit15a2763032ecaed12fcf2093b22e76fe47789169
tree590aa27de052e70920a1e2773ea956274ffbaed1
parent0eb2a287093c50f0a1c9dc218029a8766a0cfa6d
Fix invalid initializer of CLOCK_TYPE variables if BSD_TIME
(fix of commits 7e59301c106ecaefca)

* alloc.c [!NO_CLOCK] (GC_start_time): Initialize to
CLOCK_TYPE_INITIALIZER (instead of 0).
* alloc.c [!NO_CLOCK] (GC_try_to_collect_inner, GC_stopped_mark,
GC_finish_collection): Initialize local variable of CLOCK_TYPE type to
CLOCK_TYPE_INITIALIZER (instead of 0); remove comment (duplicating that
in gc_priv.h).
* reclaim.c [!NO_CLOCK] (GC_reclaim_all): Likewise.
* include/private/gc_priv.h [!NO_CLOCK] (CLOCK_TYPE_INITIALIZER):
Define macro.
alloc.c
include/private/gc_priv.h
reclaim.c