Further improvements for C23 testsmaster
commitd5d33c599143f6c36406eb860571fced1da49ea4
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Nov 2024 17:00:49 +0000 (17 09:00 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 17 Nov 2024 17:17:24 +0000 (17 09:17 -0800)
tree781f1eeffd72d5a7c29b3837ccf98512370549a4
parent1f38316f6af7bf63e5e7dd187ff6456e07ad743e
Further improvements for C23 tests

Problems reported by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00140.html
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00141.html
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html
* lib/autoconf/c.m4 (_AC_C_C23_TEST_GLOBALS):
In use_u8, add parens to pacify GCC 15 -Wbool-compare,
and use sizeof to make it a conforming integer constant expression.
Do not test stdbit.h, as some current sort-of-C23 environments
lack it and want to use options like -std=gnu23 on such platforms.
Use null_pointer to pacify GCC -Wunused-const-variable.
lib/autoconf/c.m4