aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorDJ Delorie <dj@gcc.gnu.org>2006-01-18 15:02:42 -0500
committerDJ Delorie <dj@gcc.gnu.org>2006-01-18 15:02:42 -0500
commit79cf599406a6a51e2fdd47810fdba89e04cbf1cc (patch)
treefc2b70d94a779eb0814d5f4a6c95145347b94e16 /gcc/common.opt
parentf9fe7aed71e486669af301c0beb0c58bc303ee39 (diff)
downloadgcc-79cf599406a6a51e2fdd47810fdba89e04cbf1cc.zip
gcc-79cf599406a6a51e2fdd47810fdba89e04cbf1cc.tar.gz
gcc-79cf599406a6a51e2fdd47810fdba89e04cbf1cc.tar.bz2
c-pragma.c (handle_pragma_diagnostic): New.
* c-pragma.c (handle_pragma_diagnostic): New. (init_pragma): Register it. * doc/extend.texi: Document it. * diagnostic.def: Add DK_UNSPECIFIED and DK_IGNORED. * diagnostic.h (diagnostic_classify_diagnostic): Declare. (diagnostic_context): Add classify_diagnostic[]. * diagnostic.c (diagnostic_count_diagnostic): Don't count warnings as errors if they're overridden to DK_WARNING. (diagnostic_initialize): Initialize classify_diagnostic[]. (diagnostic_set_kind_override): New. (diagnostic_report_diagnostic): Check for kind changes. * opts.c (common_handle_option): Take lang_mask. Update callers. Handle OPT_Werror_. * common.opt (Werror=): New. * doc/invoke.texi: Document -Werror=* From-SVN: r109907
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 8fe9bee..d16b997 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -1,6 +1,6 @@
; Options for the language- and target-independent parts of the compiler.
-; Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
+; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
@@ -81,6 +81,10 @@ Werror
Common Var(warnings_are_errors)
Treat all warnings as errors
+Werror=
+Common Joined
+Treat specified warning as error
+
Wextra
Common
Print extra (possibly unwanted) warnings