From 338e1941b807b74de36b4ca335caffd72c5fbd11 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sat, 26 Feb 2022 22:43:34 +0300 Subject: 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). --- mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mark.c') 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. */ -- cgit v1.2.1