(warn_if_unused_value): Handle TREE_NO_UNUSED_WARNING for

COMPOUND_EXPRs, too.

From-SVN: r7500
This commit is contained in:
Jason Merrill 1994-06-16 00:47:03 +00:00
parent 248c0f743b
commit a646a21183

@ -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. */