summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-10-03 10:17:37 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-10-03 10:17:37 +0300
commit14deadaddbf84caf4e9a31eb9dfeb3c03e95a599 (patch)
tree90e8a49af88ded601b422abe212d985b4b9de3a8 /mark.c
parent31637cfd88dfc6554e606f86bab76feb752fac91 (diff)
downloadbdwgc-14deadaddbf84caf4e9a31eb9dfeb3c03e95a599.tar.gz
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.
Diffstat (limited to 'mark.c')
-rw-r--r--mark.c3
1 files changed, 2 insertions, 1 deletions
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. */