Workaround 'if condition is the same as the previous one' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Tue, 15 Jan 2019 16:52:15 +0000 (19:52 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 15 Jan 2019 16:52:15 +0000 (19:52 +0300)
commitb44088c81ce1e864b4c1d05a523c0150beeb7b8b
tree30216f0285e3eda9f97517b343e6f5bc243de230
parent45f6872e8660951249da418395981e58c232076c
Workaround 'if condition is the same as the previous one' cppcheck warnings

* alloc.c [THREAD_LOCAL_ALLOC] (GC_stopped_mark): Set GC_world_stopped
to FALSE after GC_on_collection_event(GC_EVENT_PRE_START_WORLD).
* alloc.c [THREAD_LOCAL_ALLOC] (GC_stopped_mark): Collapse adjacent
"if" statements.
* mark.c [!GC_DISABLE_INCREMENTAL] (GC_initiate_gc): Likewise.
* pthread_stop_world.c [!NACL && !GC_OPENBSD_UTHREADS
&& !GC_NETBSD_THREADS_WORKAROUND] (GC_start_world): Likewise.
alloc.c
mark.c
pthread_stop_world.c