re PR c++/89796 (Incorrect warning generated with OpenMP atomic capture)
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Mar 2019 07:54:02 +0000 (08:54 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Mar 2019 07:54:02 +0000 (08:54 +0100)
commit22a32ea068e2ec48fc4d377d2c450a873e76faca
treea3c75ea28a53fe313abce17f436ebd9d4a291175
parent7a03cad76c1d2d7f156424f0bd9290dfcb1d4488
re PR c++/89796 (Incorrect warning generated with OpenMP atomic capture)

PR c++/89796
* semantics.c (finish_omp_atomic): Add warning_sentinel for
-Wunused-value around finish_expr_stmt call.

* g++.dg/gomp/pr89796.C: New test.
* gcc.dg/gomp/pr89796.c: New test.

From-SVN: r269933
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr89796.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/gomp/pr89796.c [new file with mode: 0644]