(warn_if_unused_value): Handle TREE_NO_UNUSED_WARNING for
COMPOUND_EXPRs, too. From-SVN: r7500
This commit is contained in:
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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user