From: Ivan Maidanski Date: Wed, 16 Aug 2017 08:23:49 +0000 (+0300) Subject: Eliminate '-pedantic is not an option that controls warnings' GCC message X-Git-Tag: v8.0.0~609 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04eb273;p=gc Eliminate '-pedantic is not an option that controls warnings' GCC message (fix commit 84c0313) * mark.c [WRAP_MARK_SOME && (MSWIN32 || MSWINCE) && __GNUC__] (GC_mark_some): Use "-Wpedantic" instead of "-pedantic" (in pragma GCC diagnostic) if GCC v7+. --- diff --git a/mark.c b/mark.c index 179cfb57..33f2fba5 100644 --- a/mark.c +++ b/mark.c @@ -544,7 +544,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__) +# if defined(__clang__) || GC_GNUC_PREREQ(7, 0) # pragma GCC diagnostic ignored "-Wpedantic" # else /* GCC before ~4.8 does not accept "-Wpedantic" quietly. */