diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2022-02-26 22:43:34 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2022-02-27 17:56:37 +0300 |
commit | 338e1941b807b74de36b4ca335caffd72c5fbd11 (patch) | |
tree | c384dbbf1988b2c257544fc0249fbad20f7943d5 /mark.c | |
parent | 2624d1dbe390ca653d7d1c122a9aefd9b8fbc564 (diff) | |
download | bdwgc-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |