Hi, The first patch removes a K&R declaration which are removed by C23, and likely to be removed by compilers in the future. I assume all compilers support ANSI C declarations nowadays.
The second makes some changes to Emacs 'time-stamp' variables. I made the same changes in Gnulib a while ago, explanations can be found on that list [1][2]. In short, it makes new Emacs versions not warn on saving the file, and works on Emacs versions from 10+ years ago. Collin [1] https://lists.gnu.org/archive/html/bug-gnulib/2024-07/msg00048.html [2] https://lists.gnu.org/archive/html/bug-gnulib/2025-06/msg00093.html
>From 0bfc9f4f78d758e2ed6e3550dcc147426c055c09 Mon Sep 17 00:00:00 2001 Message-ID: <0bfc9f4f78d758e2ed6e3550dcc147426c055c09.1752114831.git.collin.fu...@gmail.com> From: Collin Funk <collin.fu...@gmail.com> Date: Wed, 9 Jul 2025 19:22:45 -0700 Subject: [PATCH 1/2] config.guess: Remove K&R function definitions. * config.guess: Remove K&R function definitions which were removed in C23. --- config.guess | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/config.guess b/config.guess index 48a6846..c1d440b 100755 --- a/config.guess +++ b/config.guess @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268 # see below for rationale -timestamp='2024-07-27' +timestamp='2025-07-09' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -534,12 +534,8 @@ case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in mips:*:*:UMIPS | mips:*:*:RISCos) set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" -#ifdef __cplusplus #include <stdio.h> /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else int main (argc, argv) int argc; char *argv[]; { -#endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); -- 2.50.0
>From ac9c2e67477ca96b5f4fff13dca071642dbc25ce Mon Sep 17 00:00:00 2001 Message-ID: <ac9c2e67477ca96b5f4fff13dca071642dbc25ce.1752114831.git.collin.fu...@gmail.com> In-Reply-To: <0bfc9f4f78d758e2ed6e3550dcc147426c055c09.1752114831.git.collin.fu...@gmail.com> References: <0bfc9f4f78d758e2ed6e3550dcc147426c055c09.1752114831.git.collin.fu...@gmail.com> From: Collin Funk <collin.fu...@gmail.com> Date: Wed, 9 Jul 2025 19:29:18 -0700 Subject: [PATCH 2/2] Adjust 'time-stamp' variables to modern Emacs. * config.guess: Make 'add-hook' add 'time-stamp' as buffer-local. Use "%Y" for 'time-stamp-format' instead of "%:y". * config.sub: Likewise. --- config.guess | 4 ++-- config.sub | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/config.guess b/config.guess index c1d440b..a58d062 100755 --- a/config.guess +++ b/config.guess @@ -1804,8 +1804,8 @@ fi exit 1 # Local variables: -# eval: (add-hook 'before-save-hook 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp nil t) # time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-format: "%Y-%02m-%02d" # time-stamp-end: "'" # End: diff --git a/config.sub b/config.sub index 4aaae46..6d85a0f 100755 --- a/config.sub +++ b/config.sub @@ -4,7 +4,7 @@ # shellcheck disable=SC2006,SC2268,SC2162 # see below for rationale -timestamp='2024-05-27' +timestamp='2025-07-09' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -2347,8 +2347,8 @@ echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" exit # Local variables: -# eval: (add-hook 'before-save-hook 'time-stamp) +# eval: (add-hook 'before-save-hook 'time-stamp nil t) # time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-format: "%Y-%02m-%02d" # time-stamp-end: "'" # End: -- 2.50.0