From 44c21c7f0304a014f491b822f7eaea34f2cc4c3c Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Tue, 24 May 2005 23:59:00 -0400 Subject: c-common.c (unsigned_conversion_warning): Move warning control from if() to warning(OPT_*). * c-common.c (unsigned_conversion_warning): Move warning control from if() to warning(OPT_*). (c_common_truthvalue_conversion): Likewise. (c_do_switch_warnings): Likewise. * c-decl.c (diagnose_mismatched_decls): Likewise. (diagnose_mismatched_decls): Likewise. (define_label): Likewise. (grokdeclarator): Likewise. * c-format.c (check_format_info): Likewise. * c-lex.c (interpret_integer): Likwise. (lex_string): Likewise. * c-opts.c (c_common_post_options): Likewise. * c-parser.c (c_parser_unary_expression): Likewise. * c-pragma.c (handle_pragma_redefine_extname): Likewise. (handle_pragma_extern_prefix): Likewise. * c-typeck.c (build_binary_op): Likewise. * gcse.c (is_too_expensive): Likewise. * opts.c (decode_options): Likewise. * stor-layout.c (place_field): Likewise. * tree-cfg.c (remove_bb): Likewise. * c.opt (-Wreturn-type): Add Var(warn_return_type). * flags.h (warn_return_type): Remove. * toplev.c (warn_return_type): Likewise. From-SVN: r100135 --- gcc/c.opt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/c.opt') diff --git a/gcc/c.opt b/gcc/c.opt index d06ac94..a055216 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -339,7 +339,7 @@ C++ ObjC++ Var(warn_reorder) Warn when the compiler reorders code Wreturn-type -C ObjC C++ ObjC++ +C ObjC C++ ObjC++ Var(warn_return_type) Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++) Wselector -- cgit v1.1