summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.def
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-21 17:36:47 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-21 17:36:47 +0000
commitd9d1b0a4878ce9d0e469ba5dfea170214c7c2023 (patch)
treee5e6b0ddf9668c7b20ff0d85dbd749ba6244b7e9 /gcc/diagnostic.def
parent2c8b23a2f0cdeb6458dad943a0ba24b36b427dd6 (diff)
downloadgcc-d9d1b0a4878ce9d0e469ba5dfea170214c7c2023.tar.gz
PR middle-end/48087
* diagnostic.def (DK_WERROR): New kind. * diagnostic.h (werrorcount): Define. * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING promoted to DK_ERROR, increment DK_WERROR counter instead of DK_ERROR counter. * toplev.c (toplev_main): Call print_ignored_options even if just werrorcount is non-zero. Exit with FATAL_EXIT_CODE even if just werrorcount is non-zero. * pt.c (convert_nontype_argument): Count werrorcount as warnings. * call.c (build_temp): Likewise. * method.c (synthesize_method): Likewise. * typeck.c (convert_for_initialization): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196887 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.def')
-rw-r--r--gcc/diagnostic.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/diagnostic.def b/gcc/diagnostic.def
index 53179e445cd..9566491ca2a 100644
--- a/gcc/diagnostic.def
+++ b/gcc/diagnostic.def
@@ -42,4 +42,6 @@ DEFINE_DIAGNOSTIC_KIND (DK_DEBUG, "debug: ")
prefix does not matter. */
DEFINE_DIAGNOSTIC_KIND (DK_PEDWARN, "pedwarn: ")
DEFINE_DIAGNOSTIC_KIND (DK_PERMERROR, "permerror: ")
-
+/* This one is just for counting DK_WARNING promoted to DK_ERROR
+ due to -Werror and -Werror=warning. */
+DEFINE_DIAGNOSTIC_KIND (DK_WERROR, "error: ")