diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 07:44:43 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 07:52:15 +0300 |
commit | 392d4fdfdf0b3be821686cd5ea6e51df986b360d (patch) | |
tree | 42ac5f554415a3f592f0510da8bd6eec7512c71b | |
parent | da3fa80bd6221d4c9b0e19e003d9ea3c86e6422a (diff) | |
download | libatomic_ops-392d4fdfdf0b3be821686cd5ea6e51df986b360d.tar.gz |
Fix 'ISO C does not allow __alignof__' compiler warning on m68k and s390
(fix of commit bf7f4c00d)
gcc-6.5/m68k and gcc-6.5/s390 (at earlier) produce a pedantic warning
if __alignof__ keyword is used (unless -std=c11). Such behavior is not
observed in gcc-7.5 or later.
* src/atomic_ops.h [__STDC_VERSION__>=201112L && !LINT2]
(AO_ALIGNOF_SUPPORTED): Do not define unless AO_GNUC_PREREQ(7,5)
(instead of AO_GNUC_PREREQ(4,3)).
-rw-r--r-- | src/atomic_ops.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/atomic_ops.h b/src/atomic_ops.h index bd8cf85..92d1f4a 100644 --- a/src/atomic_ops.h +++ b/src/atomic_ops.h @@ -231,7 +231,7 @@ # endif #endif /* !AO_ATTR_NO_SANITIZE_THREAD */ -#if (AO_GNUC_PREREQ(4, 3) || __STDC_VERSION__ >= 201112L) && !defined(LINT2) +#if (AO_GNUC_PREREQ(7, 5) || __STDC_VERSION__ >= 201112L) && !defined(LINT2) # define AO_ALIGNOF_SUPPORTED 1 #endif |