projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e8949b
)
*** empty log message ***
author
Richard Stallman
<rms@gnu.org>
Fri, 17 Apr 1992 10:53:43 +0000
(10:53 +0000)
committer
Richard Stallman
<rms@gnu.org>
Fri, 17 Apr 1992 10:53:43 +0000
(10:53 +0000)
From-SVN: r759
gcc/stmt.c
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index 1c531648584944087c6b90a61cdf81d86abd5e3b..de199028c3a6185ba882580295192cbc760c2905 100644
(file)
--- a/
gcc/stmt.c
+++ b/
gcc/stmt.c
@@
-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: