diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 07:44:43 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2021-09-10 08:11:27 +0300 |
commit | fe157ceca67497bef52dee6b2b733f5e9d51636a (patch) | |
tree | ad185df9c7ba36196b8997b60818b07c4b7370cf /src | |
parent | 807a4feccc6ef3882dbda212a3fe6fc4f9c4c5b6 (diff) | |
download | libatomic_ops-fe157ceca67497bef52dee6b2b733f5e9d51636a.tar.gz |
Fix 'ISO C does not allow __alignof__' compiler warning on m68k and s390
(fix of commit 81242ce88)
gcc-6.5/m68k and gcc-6.5/s390 (and 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)).
Diffstat (limited to 'src')
-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 |