projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
248c0f7
)
(warn_if_unused_value): Handle TREE_NO_UNUSED_WARNING for
author
Jason Merrill
<merrill@gnu.org>
Thu, 16 Jun 1994 00:47:03 +0000
(
00:47
+0000)
committer
Jason Merrill
<merrill@gnu.org>
Thu, 16 Jun 1994 00:47:03 +0000
(
00:47
+0000)
COMPOUND_EXPRs, too.
From-SVN: r7500
gcc/stmt.c
patch
|
blob
|
history
diff --git
a/gcc/stmt.c
b/gcc/stmt.c
index
acaa436
..
d74418c
100644
(file)
--- a/
gcc/stmt.c
+++ b/
gcc/stmt.c
@@
-1697,6
+1697,8
@@
warn_if_unused_value (exp)
return warn_if_unused_value (TREE_OPERAND (exp, 1));
case COMPOUND_EXPR:
+ if (TREE_NO_UNUSED_WARNING (exp))
+ return 0;
if (warn_if_unused_value (TREE_OPERAND (exp, 0)))
return 1;
/* Let people do `(foo (), 0)' without a warning. */