[Bug c/17946] wanted: warning for "a && MASK" when "a & MASK" was probably intended

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Oct 12 14:19:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-12 14:19 -------
I the only way this can be done right is not to warn about a && 1 as people sometimes do that 
(especially with macros) and that shows up in GCC a huge amount.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17946



More information about the Gcc-bugs mailing list