1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Fix "make check" failure with an ISO C 23 conforming C compiler.

Prompted by
<https://lists.gnu.org/archive/html/bug-gperf/2025-04/msg00002.html>.

* tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax
to ISO C 90 syntax.
This commit is contained in:
Bruno Haible
2025-04-09 13:10:17 +02:00
parent 3bab6ab7bf
commit 1a8e476f99
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,11 @@
2025-04-09 Bruno Haible <bruno@clisp.org>
Fix "make check" failure with an ISO C 23 conforming C compiler.
Prompted by
<https://lists.gnu.org/archive/html/bug-gperf/2025-04/msg00002.html>.
* tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax
to ISO C 90 syntax.
2025-04-09 Bruno Haible <bruno@clisp.org>
Avoid "-Wundef" warnings in C++ mode on the generated code.

View File

@@ -124,9 +124,7 @@ Xref
#include <ctype.h>
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;