On 2024-11-16 16:06, Bruno Haible wrote:
In the config.log I still see a warning:
conftest.c:74:21: warning: 'null_pointer' defined but not used
[-Wunused-const-variable=]
74 | constexpr nullptr_t null_pointer = nullptr;
| ^~~~~~~~~~~~
Maybe you want to silence that as well, just in case someone is using -Werror?
Thanks, done by installing the attached (which also syncs to and from
Autoconf master).
The plan was to update c99 to depend on std-gnu23 instead of on
std-gnu11, and to make std-gnu11 obsolete. Is it time to do that now, or
should we wait until GCC 15 is published?From dbde74f144159c9560f5fc0682d1485c62af82b4 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email protected]>
Date: Sun, 17 Nov 2024 09:30:24 -0800
Subject: [PATCH] std-gnu23: sync from Autoconf
This fixes a problem reported from Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html
* m4/std-gnu23.m4 (_AC_C_C23_TEST_MAIN): Use null_ptr.
---
ChangeLog | 7 +++++++
m4/std-gnu23.m4 | 8 +++++---
2 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 7e3bc85530..12cc380ebf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2024-11-17 Paul Eggert <[email protected]>
+
+ std-gnu23: sync from Autoconf
+ This fixes a problem reported from Bruno Haible in:
+ https://lists.gnu.org/r/bug-gnulib/2024-11/msg00145.html
+ * m4/std-gnu23.m4 (_AC_C_C23_TEST_MAIN): Use null_ptr.
+
2024-11-16 Collin Funk <[email protected]>
Remove .cvsignore files.
diff --git a/m4/std-gnu23.m4 b/m4/std-gnu23.m4
index db48ae5254..0fe7503bb2 100644
--- a/m4/std-gnu23.m4
+++ b/m4/std-gnu23.m4
@@ -1,11 +1,11 @@
# std-gnu23.m4
-# serial 4
+# serial 5
# Prefer GNU C23 to earlier versions.
# This implementation is taken from GNU Autoconf lib/autoconf/c.m4
-# commit 93b3d33c1d09b05601b240bf17b83f50ac4a148b
-# dated Thu Sep 5 18:19:36 2024 -0700
+# commit d5d33c599143f6c36406eb860571fced1da49ea4
+# dated Sun Nov 17 09:00:49 2024 -0800
# This implementation will be obsolete once we can assume Autoconf 2.73
# or later is installed everywhere a Gnulib program might be developed.
@@ -481,6 +481,7 @@ ac_c_conftest_c23_main='
goto label_at_end_of_block;
label_at_end_of_block:
}
+ ok |= !null_pointer;
ok |= two != three;
'
]])])
@@ -717,6 +718,7 @@ AS_IF([test "x$ac_cv_prog_cc_c$1" = xno],
ac_prog_cc_stdc=c$1])])
])
+
# _AC_PROG_CC_STDC_EDITION
# ------------------------
# Detect the most recent edition of the ISO C standard that is
--
2.43.0