aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2003-06-20 22:56:36 +0000
committerNeil Booth <neil@gcc.gnu.org>2003-06-20 22:56:36 +0000
commite01cc6dc6217e93c3ac55c346a5e5e6c91c3ca8d (patch)
tree0acc390403d38fbc9323dc9427575fc786cec53e /gcc/diagnostic.c
parentbdb0f0f5d2c6e51de3b8df71b6b3abd5d5f928a0 (diff)
downloadgcc-e01cc6dc6217e93c3ac55c346a5e5e6c91c3ca8d.zip
gcc-e01cc6dc6217e93c3ac55c346a5e5e6c91c3ca8d.tar.gz
gcc-e01cc6dc6217e93c3ac55c346a5e5e6c91c3ca8d.tar.bz2
c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
* c-decl.c (store_parm_decls): Make saved_warn_shadow boolean. * common.opt: Add remaining -W options and -g. * diagnostic.c (warnings_are_errors): Remove. * flags.h: Make most warning flags boolean. * opts.c (common_handle_option): Handle remaining -W options, and -g. Move many warning flags from toplev.c, making them boolean. * toplev.c: Remove many warning flags. (decode_W_option): Remove. (decode_g_option): Make extern. Error on unknown switch. (lang_independent_W_options): Use warn_dummy. (independent_decode_option): Just handle -f switches now. * toplev.h (decode_g_option): New. From-SVN: r68287
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c
index 674f5e3..35fbb6f 100644
--- a/gcc/diagnostic.c
+++ b/gcc/diagnostic.c
@@ -85,7 +85,6 @@ static void diagnostic_action_after_output (diagnostic_context *,
static void real_abort (void) ATTRIBUTE_NORETURN;
extern int rtl_dump_and_exit;
-extern int warnings_are_errors;
/* A diagnostic_context surrogate for stderr. */
static diagnostic_context global_diagnostic_context;