diff options
author | DJ Delorie <dj@redhat.com> | 2005-05-24 23:59:00 -0400 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2005-05-24 23:59:00 -0400 |
commit | 44c21c7f0304a014f491b822f7eaea34f2cc4c3c (patch) | |
tree | 9643535c0dbab111233baa2e45e430fa4ca4774d /gcc/tree-cfg.c | |
parent | 32a5d31dead6b6a3386cd8f792f3556b1f780b2d (diff) | |
download | gcc-44c21c7f0304a014f491b822f7eaea34f2cc4c3c.zip gcc-44c21c7f0304a014f491b822f7eaea34f2cc4c3c.tar.gz gcc-44c21c7f0304a014f491b822f7eaea34f2cc4c3c.tar.bz2 |
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
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 0869edc..22215a3 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -2110,11 +2110,11 @@ remove_bb (basic_block bb) loop above, so the last statement we process is the first statement in the block. */ #ifdef USE_MAPPED_LOCATION - if (warn_notreached && loc > BUILTINS_LOCATION) - warning (0, "%Hwill never be executed", &loc); + if (loc > BUILTINS_LOCATION) + warning (OPT_Wunreachable_code, "%Hwill never be executed", &loc); #else - if (warn_notreached && loc) - warning (0, "%Hwill never be executed", loc); + if (loc) + warning (OPT_Wunreachable_code, "%Hwill never be executed", loc); #endif remove_phi_nodes_and_edges_for_unreachable_block (bb); |