diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-28 14:15:43 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-28 14:16:10 -0800 |
commit | 14a7b0ce5462c90ce86d97bf952185ec2500d341 (patch) | |
tree | 644da8e2776e0e60266e2a93db9a5e608ee62ebe /m4 | |
parent | d65e5a8ba77595a598c9ddb8dfa09c4aea732659 (diff) | |
download | gnulib-14a7b0ce5462c90ce86d97bf952185ec2500d341.tar.gz |
assert-h: port static_assert to strict C99
* lib/verify.h (_GL_VERIFY): Port MSVC hack back to C99.
Problem found when testing bleeding-edge gzip on IBM XL C for AIX,
V12.1 (5765-J02, 5725-C72), which complained ‘"malloca.c", line
42.56: 1506-041 (E) The invocation of macro _Static_assert
contains fewer arguments than are required by the macro
definition.’ This diagnostic is valid because C99 requires
that if you #define _Static_assert(R, ...) you must call
_Static_assert with at least two arguments. I found a similar
problem with Sun C 5.9 SunOS_sparc Patch 124867-12 2009/11/22.
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions