[bug#71425] test: Accommodate C23 compilers.

Sam James <[email protected]> Sat, 08 Jun 2024 08:24:08 +0100
Newsgroups gmane.comp.sysutils.automake.patches
Organization Gentoo
Message-ID <[email protected]>
Collin Funk <[email protected]> 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, 377 B)
-----BEGIN PGP SIGNATURE-----

iOUEARYKAI0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCZmQHGV8UgAAAAAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB
NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MA8cc2FtQGdlbnRv
by5vcmcACgkQc4QJ9SDfkZCLVgEA5a7/6XL0eY/izpdgC3Zte06rW9NHJILNnHc1
DVe1zcYA/Ru8YJpjP2iOvhANHfwxgCbxMR6JEoRcohuv+t83W+UE
=G5Qi
-----END PGP SIGNATURE-----