From 14deadaddbf84caf4e9a31eb9dfeb3c03e95a599 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Thu, 3 Oct 2019 10:17:37 +0300 Subject: [PATCH] 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. --- mark.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mark.c b/mark.c index e6f0915..def1189 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. */ -- 2.7.4