More C type errors by default for GCC 14

David Edelsohn dje.gcc@gmail.com
Tue May 9 16:13:33 GMT 2023


On Tue, May 9, 2023 at 12:07 PM Jakub Jelinek via Gcc <gcc@gcc.gnu.org>
wrote:

> On Tue, May 09, 2023 at 05:16:19PM +0200, Richard Biener via Gcc wrote:
> >
> >
> > > Am 09.05.2023 um 14:16 schrieb Florian Weimer via Gcc <gcc@gcc.gnu.org
> >:
> > >
> > > TL;DR: This message is about turning implicit-int,
> > > implicit-function-declaration, and possibly int-conversion into errors
> > > for GCC 14.
> >
> > I suppose the goal is to not need to rely on altering CFLAGS but change
> the default behavior with still being able to undo this using -Wno-error=
> or -Wno-?
>
> Can't people just compile C89/K&R code with -std=c89/-std=gnu89 and not get
> these errors that way?
>

As Florian mentioned:

"Presently, we
cannot use -std=gnu89 etc. to opt out because there are packages which
require both C89-only language features and C99-style inlining, which is
currently not a combination supported by GCC (but maybe that could be
changed). "

David


More information about the Gcc mailing list