From: Ivan Maidanski Date: Mon, 31 Jul 2017 06:41:23 +0000 (+0300) Subject: Eliminate '-pedantic is not an option that controls warnings' GCC message X-Git-Tag: v7.6.2~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe6689d7ba6f6d56ea11cf057f8160c8c9bee527;p=platform%2Fupstream%2Flibatomic_ops.git Eliminate '-pedantic is not an option that controls warnings' GCC message (fix commit 7633154) Issue #27 (libatomic_ops). * src/atomic_ops/sysdeps/standard_ao_double_t.h [(__x86_64__ && AO_GCC_ATOMIC_TEST_AND_SET || __aarch64__) && !__ILP32__ && AO_GNUC_PREREQ(4, 7)] (pragma GCC diagnostic): Use "-Wpedantic" (instead of "-pedantic") if GCC v7+. --- diff --git a/src/atomic_ops/sysdeps/standard_ao_double_t.h b/src/atomic_ops/sysdeps/standard_ao_double_t.h index a80a236..645c70c 100644 --- a/src/atomic_ops/sysdeps/standard_ao_double_t.h +++ b/src/atomic_ops/sysdeps/standard_ao_double_t.h @@ -28,7 +28,7 @@ # if AO_GNUC_PREREQ(4, 7) || AO_CLANG_PREREQ(3, 6) # pragma GCC diagnostic push /* Suppress warning about __int128 type. */ -# if defined(__clang__) +# if defined(__clang__) || AO_GNUC_PREREQ(7, 0) # pragma GCC diagnostic ignored "-Wpedantic" # else /* GCC before ~4.8 does not accept "-Wpedantic" quietly. */