diff options
author | Richard Henderson <rth@redhat.com> | 2004-06-20 10:16:27 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-06-20 10:16:27 -0700 |
commit | b9861bff6c54b2eabafbe684647972f3c4f2a747 (patch) | |
tree | ed8b5243c2eb8d695f4aecb713b9176aeb3cafe3 /gcc/c-gimplify.c | |
parent | 9127884102347420f8185b819c137610b7e51126 (diff) | |
download | gcc-b9861bff6c54b2eabafbe684647972f3c4f2a747.tar.gz |
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.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) |