OSDN Git Service

PR c/39889
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Apr 2009 18:51:07 +0000 (18:51 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 26 Apr 2009 18:51:07 +0000 (18:51 +0000)
commita1d07e97417fb905496f727f3a78b89e2eaf6397
tree6399922f5183f7307326645bf3146bd07174447d
parent9579733ed5bf9976b201cbe8cc2649ea033987bc
PR c/39889
* stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.

* gcc.dg/Wunused-value-3.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146811 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fortran/ChangeLog
gcc/stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Wunused-value-3.c [new file with mode: 0644]