GCC feature request: warn on "if (function_name)"

Andrew Pinski pinskia@physics.uc.edu
Sat Feb 14 04:51:00 GMT 2004


On Feb 13, 2004, at 20:46, Jamie Lokier wrote:
>
> Perhaps a later GCC than 3.2.2 already has this test; if someone is
> able to check, that would be nice.

Yes, 3.4.0 does have this check.
t.c:5: warning: the address of `i', will always evaluate as `true'

Thanks,
Andrew Pinski



More information about the Gcc mailing list