re PR c/77292 (Spurious warning: logical not is only applied to the left hand side...
authorMarek Polacek <polacek@redhat.com>
Mon, 29 Aug 2016 18:13:13 +0000 (18:13 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 29 Aug 2016 18:13:13 +0000 (18:13 +0000)
commit3d06b6f2fd3258e2d9ab18e034f0bacb06a9d062
treee0cc10a7ba309ea1849abdf54d42b9c1a5e726b7
parent6ac852d15367db402f94828810c9483f76492ac5
re PR c/77292 (Spurious warning: logical not is only applied to the left hand side of comparison)

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.

From-SVN: r239833
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wlogical-not-parentheses-1.c [new file with mode: 0644]