From: Ivan Maidanski Date: Wed, 27 Sep 2017 08:42:46 +0000 (+0300) Subject: Eliminate '-pedantic is not option that controls warnings' GCC-6.4 message X-Git-Tag: v8.0.0~567 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0a3739fa4453d616a1dc11b540caf783ac9d5b4;p=gc Eliminate '-pedantic is not option that controls warnings' GCC-6.4 message (fix commits 84c0313, 04eb273) * mark.c [WRAP_MARK_SOME && (MSWIN32 || MSWINCE) && __GNUC__] (GC_mark_some): Use "-Wpedantic" instead of "-pedantic" (in pragma GCC diagnostic) if GCC v6.4+. --- diff --git a/mark.c b/mark.c index abdb9a2e..c0d1def5 100644 --- a/mark.c +++ b/mark.c @@ -532,7 +532,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(7, 0) +# if defined(__clang__) || GC_GNUC_PREREQ(6, 4) # pragma GCC diagnostic ignored "-Wpedantic" # else /* GCC before ~4.8 does not accept "-Wpedantic" quietly. */