GNU bug report logs - #71425
test: Accommodate C23 compilers.

Previous Next

Package: automake-patches;

Reported by: Collin Funk <collin.funk1 <at> gmail.com>

Date: Sat, 8 Jun 2024 05:07:02 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sam James <sam <at> gentoo.org>
To: Collin Funk <collin.funk1 <at> gmail.com>
Cc: 71425 <at> debbugs.gnu.org
Subject: [bug#71425] test: Accommodate C23 compilers.
Date: Sat, 08 Jun 2024 08:24:08 +0100
[Message part 1 (text/plain, inline)]
Collin Funk <collin.funk1 <at> gmail.com> writes:

> In the yacc test I see warnings like this:
>
> main.c:4:10: error: implicit declaration of function ‘yyparse’ [-Wimplicit-function-declaration]
>     4 |   return yyparse ();
>       |          ^~~~~~~
>
> and some for yylex which is declared, but with an empty parameter list
> instead of void.
>
> I assume this is because GCC becoming more strict to conform with C23
> requirements. I did these tests with GCC 14.1.
>

This is actually some work we've been doing to enforce C99 instead:
https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors.

> I have attached a patch fixing these tests on my system.
>
> Collin
>
> [2. text/x-patch; 0001-test-Accommodate-C23-compilers.patch]...
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year and 54 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.