]> granicus.if.org Git - gc/commit
Workaround '*_stubborn function is never used' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 08:49:31 +0000 (11:49 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 23 Nov 2018 08:49:31 +0000 (11:49 +0300)
commita613b15ce446f0926b9d0c5232ebd140bfdca9ec
tree878abde9a03eaa75b573814afe2717e33da47734
parent20cfa75b7b552284c7ec201ed56a11be68a34dd7
Workaround '*_stubborn function is never used' cppcheck warnings

* dbg_mlc.c (GC_debug_malloc_stubborn, GC_debug_change_stubborn): Do
not define if CPPCHECK.
* mallocx.c (GC_malloc_stubborn, GC_end_stubborn_change): Likewise.
* include/gc.h (GC_debug_change_stubborn): Always mark as
GC_ATTR_DEPRECATED (regardless of CPPCHECK).
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK]
(main): Remove UNTESTED(GC_debug_change_stubborn).
dbg_mlc.c
include/gc.h
mallocx.c
tests/test.c