aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-gimplify.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-06-20 10:16:27 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-06-20 10:16:27 -0700
commitb9861bff6c54b2eabafbe684647972f3c4f2a747 (patch)
treeed8b5243c2eb8d695f4aecb713b9176aeb3cafe3 /gcc/c-gimplify.c
parent9127884102347420f8185b819c137610b7e51126 (diff)
downloadgcc-b9861bff6c54b2eabafbe684647972f3c4f2a747.zip
gcc-b9861bff6c54b2eabafbe684647972f3c4f2a747.tar.gz
gcc-b9861bff6c54b2eabafbe684647972f3c4f2a747.tar.bz2
stmt.c (warn_if_unused_value): Add locus argument.
* 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. From-SVN: r83416
Diffstat (limited to 'gcc/c-gimplify.c')
-rw-r--r--gcc/c-gimplify.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/c-gimplify.c b/gcc/c-gimplify.c
index 57208e4..9259923 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)