]> granicus.if.org Git - gc/commit
Workaround 'GC_pthread_*, begin/endthreadex never used' cppcheck warnings
authorIvan Maidanski <ivmai@mail.ru>
Fri, 18 Nov 2016 19:48:36 +0000 (22:48 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 18 Nov 2016 19:48:36 +0000 (22:48 +0300)
commit857bb8ad6b50129e1d30116f80b1f11789cd56c1
treee43ec34caff2882eab4b923f9a1cf2122d51b21f
parentb26b2828a38f1fa86b8ba1daf518e2fddda8e313
Workaround 'GC_pthread_*, begin/endthreadex never used' cppcheck warnings
(fix commit c5d4ef9)

* tests/test.c [CPPCHECK] (UNTESTED): Move outside main().
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK]
(main): Remove UNTESTED(test).
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK
&& GC_PTHREADS] (main): Move UNTESTED(GC_pthread_detach),
UNTESTED(GC_set_suspend_signal), UNTESTED(GC_set_thr_restart_signal),
UNTESTED(GC_dlopen), UNTESTED(GC_pthread_cancel),
UNTESTED(GC_pthread_exit), UNTESTED(GC_pthread_sigmask) to main() which
is defined if GC_PTHREADS.
* tests/test.c [!PCR && !GC_WIN32_THREADS && !GC_PTHREADS && CPPCHECK
&& GC_WIN32_THREADS] (main): Move UNTESTED(GC_ExitThread),
UNTESTED(GC_beginthreadex), UNTESTED(GC_endthreadex) to main() which
is defined if GC_WIN32_THREADS.
* tests/test.c [PCR] (test): Call GC_noop1((word)&test) if CPPCHECK.
tests/test.c