]> granicus.if.org Git - gc/commitdiff
Workaround 'label handle_thr_start is not used' cppcheck style warning
authorIvan Maidanski <ivmai@mail.ru>
Thu, 3 Oct 2019 07:17:37 +0000 (10:17 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 3 Oct 2019 07:17:37 +0000 (10:17 +0300)
(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

diff --git a/mark.c b/mark.c
index e6f0915909a00bd159d07908801b36c24bf20af5..def11896671c47f28a4ebe7446fd7ba697d2206d 100644 (file)
--- 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.   */