[Bug c/77292] Spurious warning: logical not is only applied to the left hand side of comparison
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Aug 29 18:14:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77292
--- Comment #15 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Mon Aug 29 18:13:13 2016
New Revision: 239833
URL: https://gcc.gnu.org/viewcvs?rev=239833&root=gcc&view=rev
Log:
PR c/77292
* c-common.c (warn_logical_not_parentheses): Don't warn for
a comparison or a logical operator.
* c-c++-common/Wlogical-not-parentheses-1.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/Wlogical-not-parentheses-1.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list