PR c/89425 - -Wabsolute-value warns in dead subexpressions
authorMartin Sebor <msebor@redhat.com>
Fri, 22 Feb 2019 16:24:36 +0000 (16:24 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Fri, 22 Feb 2019 16:24:36 +0000 (09:24 -0700)
commit3c2a70cb1414b10ab3d52286087398cd03a70413
tree34bd4615f175e082208c635ea524cf2c610a5199
parentd228ac9ae52cc33ea572da89f325f8aeebd9eb32
PR c/89425 - -Wabsolute-value warns in dead subexpressions

gcc/c/ChangeLog:

PR c/89425
* c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
unreachable subexpressions.

gcc/testsuite/ChangeLog:

PR c/89425
* gcc.dg/Wabsolute-value.c: New test.

From-SVN: r269121
gcc/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wabsolute-value.c [new file with mode: 0644]