This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: char y = 469;
"Diego Novillo" <dnovillo@google.com> writes:
> On 27 Aug 2007 11:24:44 -0700, Ian Lance Taylor <iant@google.com> wrote:
>
> > This warning is (or, rather, will be) new with gcc 4.3.0, when gcc
> > 4.3.0 is released.
>
> You mean the functionality, right? IIRC, -Wconversion used to work in
> function arguments (if x and y were function arguments in this test,
> for instance).
Yes, the functionality--that is, this specific warning, among others.
As you say, -Wconversion in general is not new.
This was due to a Google Summer of Code project last year:
http://gcc.gnu.org/wiki/Wcoercion
Ian