This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -Wconversion changes from 4.1 to 4.3
- From: Ian Lance Taylor <iant at google dot com>
- To: Jan Engelhardt <jengelh at medozas dot de>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 19 Oct 2009 15:01:40 -0700
- Subject: Re: -Wconversion changes from 4.1 to 4.3
- References: <alpine.LSU.2.00.0910181311260.10033@obet.zrqbmnf.qr>
Jan Engelhardt <jengelh@medozas.de> writes:
> in gcc 4.1, the following sample throws a warning:
>
> /* gcc-4.1 -c test.c -Wall -Wconversion */
> #include <stdbool.h>
>
> static int a(bool b)
> {
> return b ? 1 : 0;
> }
>
> int main(void)
> {
> return a(true);
> }
>
> test.c:10: warning: passing argument 1 of âaâ with different width due
> to prototype
>
> In gcc-4.3 however, that warning is gone. Where could I read more about
> this change?
The warning was moved from -Wconversion to -Wtraditional-conversion.
This was documented at http://gcc.gnu.org/gcc-4.3/changes.html .
Ian