From: Ivan Maidanski Date: Wed, 29 May 2019 20:52:27 +0000 (+0300) Subject: Eliminate 'struct member os_callback is never used' cppcheck warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4174ee199a83effeba94aa6da6f0ebfe0b7841d7;p=gc Eliminate 'struct member os_callback is never used' cppcheck warning * os_dep.c [MPROTECT_VDB && DARWIN && CPPCHECK] (GC_dirty_init): Call GC_noop1(GC_ports.os_callback[0]). --- diff --git a/os_dep.c b/os_dep.c index 8c64b01b..224c5da8 100644 --- a/os_dep.c +++ b/os_dep.c @@ -4200,6 +4200,9 @@ GC_INNER GC_bool GC_dirty_init(void) } } # endif /* BROKEN_EXCEPTION_HANDLING */ +# if defined(CPPCHECK) + GC_noop1((word)GC_ports.os_callback[0]); +# endif return TRUE; }