diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-07-02 08:41:29 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-07-02 08:41:29 +0200 |
commit | 557e8c49cf47555401cf07c020ebdf6ddd4296b5 (patch) | |
tree | 8613a51002d3befa50a1a23aaf8eeee136366785 /gcc/c/c-typeck.c | |
parent | 547ef7ded59554fcf8fb59dab0769e9c0004c696 (diff) | |
download | gcc-557e8c49cf47555401cf07c020ebdf6ddd4296b5.zip gcc-557e8c49cf47555401cf07c020ebdf6ddd4296b5.tar.gz gcc-557e8c49cf47555401cf07c020ebdf6ddd4296b5.tar.bz2 |
re PR c/71719 (invalid set-but-not-used warning with vectors)
PR c/71719
* c-typeck.c (mark_exp_read): Handle VIEW_CONVERT_EXPR.
* c-c++-common/Wunused-var-15.c: New test.
From-SVN: r237937
Diffstat (limited to 'gcc/c/c-typeck.c')
-rw-r--r-- | gcc/c/c-typeck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c/c-typeck.c b/gcc/c/c-typeck.c index b2435de..bafd0d2 100644 --- a/gcc/c/c-typeck.c +++ b/gcc/c/c-typeck.c @@ -1896,6 +1896,7 @@ mark_exp_read (tree exp) case IMAGPART_EXPR: CASE_CONVERT: case ADDR_EXPR: + case VIEW_CONVERT_EXPR: mark_exp_read (TREE_OPERAND (exp, 0)); break; case COMPOUND_EXPR: |