[Bug c/65120] [5 Regression] Wlogical-not-parentheses should not warn about double exclamation !!
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Mar 4 11:38:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65120
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> ---
Btw, just saw
> [ 2808s] ../drivers/xen/sfc_netfront/falcon_event.c:113:43: error: logical
> not is only applied to the left hand side of comparison
> [-Werror=logical-not-parentheses]
> [ 2808s] BUG_ON(!QWORD_GET_U(RX_EV_BYTE_CNT, *ev) == 0);
> [ 2808s] ^
which I think we should preserve - so make sure that the !! special-casing
doesn't cover this case from macro expansion.
More information about the Gcc-bugs
mailing list