+2020-11-04 Paul Eggert <eggert@cs.ucla.edu>
+
+ tests: port better to XLC 12.01
+ * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
+ even in code that is not executed, as IBM XLC 12.01 complains "The
+ subscript -1 is less than zero."
+ * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
+ argument to _GL_VERIFY, as ISO C requires. Otherwise, IBM XLC
+ 12.01 complains "The invocation of macro _GL_VERIFY contains fewer
+ arguments than are required by the macro definition."
+
2020-11-03 Bruno Haible <bruno@clisp.org>
aligned-malloc: Use fixes from the new modules.
ASSERT (argmatch_backup_choice (Input) == Output); \
if (0 <= Output) \
{ \
- enum backup_type val = argmatch_backup_args[Output].val; \
+ enum backup_type val \
+ = argmatch_backup_args[Output < 0 ? 0 : Output].val; \
ASSERT (*argmatch_backup_value ("test", Input) == val); \
ASSERT (*argmatch_backup_value ("test", \
argmatch_backup_argument (&val)) \
*/
#define verify_width(width, min, max) \
_GL_VERIFY ((max) >> ((width) - 1 - ((min) < 0)) == 1, \
- "verify_width check")
+ "verify_width check", -)
/* Macros specified by ISO/IEC TS 18661-1:2014. */