From: Ivan Maidanski Date: Thu, 3 Oct 2019 07:17:37 +0000 (+0300) Subject: Workaround 'label handle_thr_start is not used' cppcheck style warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14deadaddbf84caf4e9a31eb9dfeb3c03e95a599;p=gc Workaround 'label handle_thr_start is not used' cppcheck style warning (fix of commit 03109f287) * mark.c [WRAP_MARK_SOME && GC_WIN32_THREADS && !GC_PTHREADS] (GC_mark_some): Define handle_thr_start label only if MSWIN32 or MSWINCE is defined. --- diff --git a/mark.c b/mark.c index e6f09159..def11896 100644 --- a/mark.c +++ b/mark.c @@ -572,7 +572,8 @@ handle_ex: warned_gc_no = GC_gc_no; } } -# if defined(GC_WIN32_THREADS) && !defined(GC_PTHREADS) +# if (defined(MSWIN32) || defined(MSWINCE)) && defined(GC_WIN32_THREADS) \ + && !defined(GC_PTHREADS) handle_thr_start: # endif /* We have bad roots on the stack. Discard mark stack. */