From 1a8e476f99335ad5a553f24f1956a084fc6adc10 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 9 Apr 2025 13:10:17 +0200 Subject: [PATCH] Fix "make check" failure with an ISO C 23 conforming C compiler. Prompted by . * tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax to ISO C 90 syntax. --- ChangeLog | 8 ++++++++ tests/smtp.gperf | 8 ++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index fdc179e..a59547a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2025-04-09 Bruno Haible + + Fix "make check" failure with an ISO C 23 conforming C compiler. + Prompted by + . + * tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax + to ISO C 90 syntax. + 2025-04-09 Bruno Haible Avoid "-Wundef" warnings in C++ mode on the generated code. diff --git a/tests/smtp.gperf b/tests/smtp.gperf index da6ec7d..a5c448d 100644 --- a/tests/smtp.gperf +++ b/tests/smtp.gperf @@ -124,9 +124,7 @@ Xref #include static int -my_case_strcmp (s1, s2) - register const char *s1; - register const char *s2; +my_case_strcmp (const char *s1, const char *s2) { for (;;) { @@ -143,9 +141,7 @@ my_case_strcmp (s1, s2) } int -main (argc, argv) - int argc; - char *argv[]; +main (int argc, char *argv[]) { int i, j, k, n, exitcode; size_t len;