re PR c/50179 (wrong "set but not used" warning)
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Aug 2011 14:37:22 +0000 (16:37 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Aug 2011 14:37:22 +0000 (16:37 +0200)
commitf1a89dd00ccfb6e77ecec7203f40653b53a93cff
tree413636b1ba12d92675262e9fef4b7c81c3aab4d0
parentfd3e0a33c7df8b478e10c3d4ac6af11e77aae425
re PR c/50179 (wrong "set but not used" warning)

PR c/50179
* c-typeck.c (c_process_expr_stmt): Skip over nops and
call mark_exp_read even if exprv is ADDR_EXPR.

* c-c++-common/Wunused-var-14.c: New test.

From-SVN: r178110
gcc/ChangeLog
gcc/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/Wunused-var-14.c [new file with mode: 0644]