summaryrefslogtreecommitdiff
path: root/mark.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-02-26 22:43:34 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-02-27 17:56:37 +0300
commit338e1941b807b74de36b4ca335caffd72c5fbd11 (patch)
treec384dbbf1988b2c257544fc0249fbad20f7943d5 /mark.c
parent2624d1dbe390ca653d7d1c122a9aefd9b8fbc564 (diff)
downloadbdwgc-338e1941b807b74de36b4ca335caffd72c5fbd11.tar.gz
Eliminate '-pedantic is not option that controls warnings' GCC-6.3 message
(fix of commit e0a3739fa) * mark.c [WRAP_MARK_SOME && (MSWIN32 || MSWINCE) && __GNUC__ && !__clang__ && GC_GNUC_PREREQ(6,0)] (GC_mark_some): Use pragma GCC diagnostic ignored "-Wpedantic" (instead of "-pedantic") starting from gcc-6.0 (not from gcc-6.4).
Diffstat (limited to 'mark.c')
-rw-r--r--mark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mark.c b/mark.c
index d1015813..d0307494 100644
--- a/mark.c
+++ b/mark.c
@@ -489,7 +489,7 @@ static void alloc_mark_stack(size_t);
# if GC_GNUC_PREREQ(4, 7) || GC_CLANG_PREREQ(3, 3)
# pragma GCC diagnostic push
/* Suppress "taking the address of label is non-standard" warning. */
-# if defined(__clang__) || GC_GNUC_PREREQ(6, 4)
+# if defined(__clang__) || GC_GNUC_PREREQ(6, 0)
# pragma GCC diagnostic ignored "-Wpedantic"
# else
/* GCC before ~4.8 does not accept "-Wpedantic" quietly. */