------- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-14 22:52 ------- Caused by: 2005-12-14 Ben Elliston <[EMAIL PROTECTED]>
* c-common.c (c_common_truthvalue_conversion): Generalise warning for addresses converted to booleans; not just function addresses. * c-typeck.c (build_binary_op): Warn for address comparisons which can never be NULL (eg. func == NULL or &var == NULL). * common.opt (Walways-true): New option. * c-opts.c (c_common_handle_option): Set it with -Wall. * doc/invoke.texi: Document it. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2005-12-14 22:52:01 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25422