]> granicus.if.org Git - gc/commit
Workaround 'variable reassigned before old value used' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Tue, 18 Oct 2016 21:42:29 +0000 (00:42 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 18 Oct 2016 21:43:43 +0000 (00:43 +0300)
commitc6970a6261cb8c13d167b1d2bb0e7bfd24e21c48
tree89ea2759739725f4bee12f85fb9b0cb56e01080a
parent6a7ef6d170cc902372f56cbf52d5f248a69c86fd
Workaround 'variable reassigned before old value used' cppcheck warnings

* misc.c (GC_call_with_gc_active): Call GC_noop1 for
GC_traced_stack_sect and GC_blocked_sp (before restoring their original
values) if CPPCHECK.
* win32_threads.c (GC_do_blocking_inner): Call GC_noop1 for
thread_blocked_sp field (before restoring its original value)
if CPPCHECK.
* win32_threads.c (GC_call_with_gc_active): Call GC_noop1 for
traced_stack_sect field (before restoring its original value)
if CPPCHECK.
misc.c
win32_threads.c