summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2022-02-08 09:24:54 +0300
committerIvan Maidanski <ivmai@mail.ru>2022-02-08 09:37:12 +0300
commit401f7b77301b7b588a89c7ab1b8ddb97cb4e5e57 (patch)
treec74f950177460fe75ebcccf5104d8fde8d3f0fe3
parent914862752503cac5c3e7e5be8a8af2f5b97153a8 (diff)
downloadlibatomic_ops-401f7b77301b7b588a89c7ab1b8ddb97cb4e5e57.tar.gz
Eliminate '-pedantic is not option that controls warnings' GCC-6.3 message
(fix of commit cd7fd8539) 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(6,0)]: Use "-Wpedantic" (instead of "-pedantic").
-rw-r--r--src/atomic_ops/sysdeps/standard_ao_double_t.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_ops/sysdeps/standard_ao_double_t.h b/src/atomic_ops/sysdeps/standard_ao_double_t.h
index 7b69ae4..757fe79 100644
--- a/src/atomic_ops/sysdeps/standard_ao_double_t.h
+++ b/src/atomic_ops/sysdeps/standard_ao_double_t.h
@@ -29,7 +29,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(6, 4)
+# if defined(__clang__) || AO_GNUC_PREREQ(6, 0)
# pragma GCC diagnostic ignored "-Wpedantic"
# else
/* GCC before ~4.8 does not accept "-Wpedantic" quietly. */