gcc-14: -Wimplicit-function-declaration was promoted to an error
Arsen Arsenović
arsen@aarsen.me
Sat Sep 28 01:09:34 GMT 2024
Hi,
Jason Mancini via Gcc-help <gcc-help@gcc.gnu.org> writes:
> In gcc-13, an implicit function declaration was a warning. In gcc-14, it's an error.
> Both are the same __STDC_VERSION__ and no behavior change is mentioned in release_notes.
>
> Was this intentional?
Yes. The behavior change is noted in the release page[1] ("C: Certain
warnings about are now errors, see Porting to GCC 14 for details."), and
an elaborated report of the changes is at
https://gcc.gnu.org/gcc-14/porting_to.html#warnings-as-errors
Note that the constructs in question haven't been valid in a while and
were accepted as an extension.
Hope that helps, happy hacking.
[1] https://gcc.gnu.org/gcc-14/changes.html
--
Arsen Arsenović
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20240928/2f0c0893/attachment.sig>
More information about the Gcc-help
mailing list