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:
@@ -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>
|
2025-04-09 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Avoid "-Wundef" warnings in C++ mode on the generated code.
|
Avoid "-Wundef" warnings in C++ mode on the generated code.
|
||||||
|
|||||||
@@ -124,9 +124,7 @@ Xref
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
my_case_strcmp (s1, s2)
|
my_case_strcmp (const char *s1, const char *s2)
|
||||||
register const char *s1;
|
|
||||||
register const char *s2;
|
|
||||||
{
|
{
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
@@ -143,9 +141,7 @@ my_case_strcmp (s1, s2)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
main (argc, argv)
|
main (int argc, char *argv[])
|
||||||
int argc;
|
|
||||||
char *argv[];
|
|
||||||
{
|
{
|
||||||
int i, j, k, n, exitcode;
|
int i, j, k, n, exitcode;
|
||||||
size_t len;
|
size_t len;
|
||||||
|
|||||||
Reference in New Issue
Block a user