Workaround 'Uninitialized variable' cppcheck errors
authorIvan Maidanski <ivmai@mail.ru>
Tue, 18 Oct 2016 08:39:17 +0000 (11:39 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 18 Oct 2016 08:39:17 +0000 (11:39 +0300)
commit91a420c0c4dd26268791a80d73a475b1a87d4123
tree6cdfa1fff2bba4a6de95676918e6d5090272c804
parent0a1446ec893137544d676905291fd21c7fe6cf00
Workaround 'Uninitialized variable' cppcheck errors

* extra/AmigaOS.c [GC_AMIGA_DS] (GC_register_data_segments): Initialize
myseglist outside conditional statement.
* mach_dep.c [GETCONTEXT_FPU_EXCMASK_BUG && X86_64]
(GC_with_callee_saves_pushed): Call GC_noop1(&old_fcw) (before asm
fstcw) if CPPCHECK.
* mach_dep.c [!HAVE_BUILTIN_UNWIND_INIT] (GC_with_callee_saves_pushed):
Replace regs with &regs.
* os_dep.c [!MSWIN32 && !GC_OPENBSD_THREADS && ...]
(GC_get_main_stack_base): Set result to NULL if CPPCHECK but none of
HEURISTIC* and *STACKBOTTOM defined.
extra/AmigaOS.c
mach_dep.c
os_dep.c