More C type errors by default for GCC 14
Eli Zaretskii
eliz@gnu.org
Wed May 10 11:30:07 GMT 2023
> From: Jonathan Wakely <jwakely.gcc@gmail.com>
> Date: Wed, 10 May 2023 09:04:12 +0100
> Cc: Florian Weimer <fweimer@redhat.com>, "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
> Jakub Jelinek <jakub@redhat.com>, Arsen Arsenović <arsen@aarsen.me>
>
> void foo(int);
> void bar() { foo("42"); }
>
> Why should this compile?
Because GCC is capable of compiling it.
> You keep demanding better rationale for the change, but your argument amounts to nothing more than
> "it compiles today, it should compile tomorrow".
It compiles today with a warning, so that whoever is interested to fix
the code, can do that already. The issue at hand is not whether to
flag the code as highly suspicious, the issue at hand is whether
upgrade the warning to errors. So let's talk about the issue at hand,
not about something else, okay?
More information about the Gcc
mailing list