diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2016-10-13 11:03:04 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2016-10-13 11:03:04 +0300 |
commit | 3dc5035d76237efed82e675452709f3d9fe4af6d (patch) | |
tree | 6df56d5d136741d0ed73a8d167523782cf69082c /darwin_stop_world.c | |
parent | 720e3fe815517b39164bd6d6a72b7197ba536621 (diff) | |
download | bdwgc-3dc5035d76237efed82e675452709f3d9fe4af6d.tar.gz |
Workaround more '#error' cppcheck error messages
* darwin_stop_world.c (GC_stack_range_for): Skip #error pragma if
CPPCHECK.
* dyn_load.c [DYNAMIC_LOADING && !PCR && !DARWIN]: Likewise.
* dyn_load.c [SOLARISDL && !PCR && !GC_SOLARIS_THREADS && THREADS]:
Likewise.
* include/private/gc_priv.h [!POWERPC && !I386 && !X86_64 && !ARM32
&& !AARCH64] (GC_THREAD_STATE_T): Likewise.
* include/private/gcconfig.h [GC_IRIX_THREADS && !IRIX5 || ...]:
Likewise.
* include/private/gcconfig.h [PARALLEL_MARK && !THREADS]: Likewise.
* include/private/gcconfig.h [MARK_BIT_PER_GRANULE && MARK_BIT_PER_OBJ
|| ...]: Likewise.
* pcr_interface.c [PCR] (GC_enumerate_block): Likewise.
* win32_threads.c [!I386 && !X86_64 && !ARM32 && !SHx && !MIPS && !PPC
&& !ALPHA] (GC_push_stack_for): Likewise.
* darwin_stop_world.c (GC_stack_range_for): Initialize "lo" local
variable even if platform unsupported.
Diffstat (limited to 'darwin_stop_world.c')
-rw-r--r-- | darwin_stop_world.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/darwin_stop_world.c b/darwin_stop_world.c index e3c05480..921f6f57 100644 --- a/darwin_stop_world.c +++ b/darwin_stop_world.c @@ -294,6 +294,8 @@ STATIC ptr_t GC_stack_range_for(ptr_t *phi, thread_act_t thread, GC_thread p, GC_push_one(state.THREAD_FLD(fp)); GC_push_one(state.THREAD_FLD(lr)); +# elif defined(CPPCHECK) + lo = NULL; # else # error FIXME for non-x86 || ppc || arm architectures # endif |