summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 22:56:36 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-20 22:56:36 +0000
commit6f2f567f1b858a1f56e54d9af3f97e8c7c31f409 (patch)
tree0acc390403d38fbc9323dc9427575fc786cec53e /gcc/diagnostic.c
parent90297d23280e2609b5404a4f57704e503df14549 (diff)
downloadgcc-6f2f567f1b858a1f56e54d9af3f97e8c7c31f409.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68287 138bc75d-0d04-0410-961f-82ee72b054a4
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 674f5e3c2cd..35fbb6f2288 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;