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

From: Andrew Pinski
Date: Fri Feb 13 2004 - 23:53:43 EST



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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/