From c54092492e15aeccc804c24f70b806ce4bb8cd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20L=C3=B3pez-Ib=C3=A1=C3=B1ez?= Date: Wed, 17 Oct 2007 00:11:25 +0000 Subject: builtins.c (gimplify_va_arg_expr): Use inform for help message. 2007-10-17 Manuel Lopez-Ibanez * builtins.c (gimplify_va_arg_expr): Use inform for help message. * toplev.c (check_global_declaration_1): Use appropriate warning option instead of unnamed warning. * stor-layout.c (layout_decl): Likewise. * c-typeck.c (build_conditional_expr): Likewise. (build_compound_expr): Fix wrong comment. (build_binary_op): Use appropriate warning option instead of unnamed warning. * cfgexpand.c (tree_expand_cfg): Likewise. * tree-optimize.c (tree_rest_of_compilation): Likewise. * tree-cfg.c (remove_useless_stmts_warn_notreached): Likewise. (execute_warn_function_return): Likewise. * stmt.c (warn_if_unused_value): Likewise. cp/ * typeck.c (build_binary_op) : Use appropriate warning option instead of unnamed warning. From-SVN: r129393 --- gcc/stmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/stmt.c') diff --git a/gcc/stmt.c b/gcc/stmt.c index 69cb5e0..f1be5e0 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -1479,7 +1479,7 @@ warn_if_unused_value (const_tree exp, location_t locus) return 0; warn: - warning (0, "%Hvalue computed is not used", &locus); + warning (OPT_Wunused_value, "%Hvalue computed is not used", &locus); return 1; } } -- cgit v1.1