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;