diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-20 17:16:27 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-06-20 17:16:27 +0000 |
commit | c48505a3917ae3d1159bb40effa6aecd3cd4fc1d (patch) | |
tree | ed8b5243c2eb8d695f4aecb713b9176aeb3cafe3 /gcc/c-gimplify.c | |
parent | a0fee14aa7831636bf6b6fc6d5fb852979c80ab4 (diff) | |
download | gcc-c48505a3917ae3d1159bb40effa6aecd3cd4fc1d.tar.gz |
* stmt.c (warn_if_unused_value): Add locus argument.
* tree.h (warn_if_unused_value): Update decl.
* c-typeck.c (internal_build_compound_expr): Update call.
* c-gimplify.c (gimplify_expr_stmt): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83416 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-gimplify.c')
-rw-r--r-- | gcc/c-gimplify.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c index 57208e4c03f..9259923794f 100644 --- a/gcc/c-gimplify.c +++ b/gcc/c-gimplify.c @@ -239,12 +239,7 @@ gimplify_expr_stmt (tree *stmt_p) warning ("statement with no effect"); } else if (warn_unused_value) - { - /* Kludge for 20020220-2.c. warn_if_unused_value shouldn't use - the stmt file location info. */ - set_file_and_line_for_stmt (input_location); - warn_if_unused_value (stmt); - } + warn_if_unused_value (stmt, input_location); } if (stmt == NULL_TREE) |