From b9861bff6c54b2eabafbe684647972f3c4f2a747 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 20 Jun 2004 10:16:27 -0700 Subject: 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 --- gcc/c-gimplify.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gcc/c-gimplify.c') 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) -- cgit v1.1