]> granicus.if.org Git - gc/commit
Workaround 'var reassigned before old value use' cppcheck false positive
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Nov 2018 22:05:26 +0000 (01:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Nov 2018 22:08:09 +0000 (01:08 +0300)
commit945afca717982db4363e6241a5da80a5999afed2
treefbcadda722b2d827122f65767aef6564c43ae210
parent53aa42b3a1fedb85c191600a7aa5190f6b53cd28
Workaround 'var reassigned before old value use' cppcheck false positive

* extra/AmigaOS.c [!GC_AMIGA_ONLYFAST && CPPCHECK]
(GC_amiga_allocwrapper_any): Add a dummy read of GC_amiga_dontalloc
global variable; add comment.
* pthread_support.c [CPPCHECK] (GC_do_blocking_inner): Add a dummy read
of thread_blocked field of GC_thread.
* pthread_support.c [CPPCHECK] (GC_call_with_gc_active): Add a dummy
read of traced_stack_sect field of GC_thread.
extra/AmigaOS.c
pthread_support.c