From: Richard Stallman Date: Fri, 17 Apr 1992 10:53:43 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: misc/cutover-egcs-0~13172 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d23e5099715fc312235850f6caa13c0d89515a7;p=thirdparty%2Fgcc.git *** empty log message *** From-SVN: r759 --- diff --git a/gcc/stmt.c b/gcc/stmt.c index 1c5316485849..de199028c3a6 100644 --- 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: