This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]