Eliminate '-pedantic is not option that controls warnings' GCC-6.4 message
authorIvan Maidanski <ivmai@mail.ru>
Wed, 27 Sep 2017 08:50:11 +0000 (11:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 13 Oct 2017 07:10:06 +0000 (10:10 +0300)
(fix commits 7633154, 7fad46e)

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 v6.4+.

src/atomic_ops/sysdeps/standard_ao_double_t.h

index 645c70c..630c376 100644 (file)
@@ -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__) || AO_GNUC_PREREQ(7, 0)
+#   if defined(__clang__) || AO_GNUC_PREREQ(6, 4)
 #     pragma GCC diagnostic ignored "-Wpedantic"
 #   else
       /* GCC before ~4.8 does not accept "-Wpedantic" quietly.  */