Re: gcc-14: -Wimplicit-function-declaration was promoted to an error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Jason Mancini via Gcc-help <gcc-help@xxxxxxxxxxx> 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ć

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux