stmt.c (expand_expr_stmt): Only call warn_if_unused_value if the tree has side effects.
authorRichard Henderson <rth@cygnus.com>
Tue, 19 Sep 2000 13:39:10 +0000 (06:39 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 19 Sep 2000 13:39:10 +0000 (06:39 -0700)
commit9790cefdd45a78f21a77f9ff0e7170fe3732b8a5
tree923b7f25e39f6b01258cfeb1721e12e7bd3e602e
parent8e5a0fcb7520eb7a21aab9c6b06bf488d4314698
stmt.c (expand_expr_stmt): Only call warn_if_unused_value if the tree has side effects.

        * stmt.c (expand_expr_stmt): Only call warn_if_unused_value
        if the tree has side effects.
        (warn_if_unused_value): Do not warn about void constructs.

From-SVN: r36532
gcc/ChangeLog
gcc/stmt.c