[Bug c++/62153] warn for bool expression compared with integer different from 0/1

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Aug 15 10:31:00 GMT 2014


Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-08-15
                 CC|                            |mpolacek at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |mpolacek at gcc dot gnu.org
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1

--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Sounds good.  I'll look at it, so mine for now.  But the
-Wtautological-constant-out-of-range-compare name is too long - can't we name
it just e.g. -Wbool-compare?

More information about the Gcc-bugs mailing list