*** empty log message ***

From-SVN: r759
This commit is contained in:
Richard Stallman 1992-04-17 10:53:43 +00:00
parent 0e8949ba7b
commit 4d23e50997
1 changed files with 3 additions and 0 deletions

View File

@ -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: