diff options
author | Richard Stallman <rms@gnu.org> | 1992-04-17 10:53:43 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1992-04-17 10:53:43 +0000 |
commit | 4d23e5099715fc312235850f6caa13c0d89515a7 (patch) | |
tree | 362f2600d4b7aaeb75275a511be2ddfd6a9989fb /gcc | |
parent | 0e8949ba7bfbd29afc1f7a470724b1377f3427b0 (diff) | |
download | gcc-4d23e5099715fc312235850f6caa13c0d89515a7.zip gcc-4d23e5099715fc312235850f6caa13c0d89515a7.tar.gz gcc-4d23e5099715fc312235850f6caa13c0d89515a7.tar.bz2 |
*** empty log message ***
From-SVN: r759
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/stmt.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1265,6 +1265,9 @@ warn_if_unused_value (exp) case COMPOUND_EXPR: if (warn_if_unused_value (TREE_OPERAND (exp, 0))) return 1; + /* Let people do `(foo (), 0)' without a warning. */ + if (TREE_CONSTANT (TREE_OPERAND (exp, 1))) + return 0; return warn_if_unused_value (TREE_OPERAND (exp, 1)); case NOP_EXPR: |