diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-21 17:36:47 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-03-21 17:36:47 +0000 |
commit | d9d1b0a4878ce9d0e469ba5dfea170214c7c2023 (patch) | |
tree | e5e6b0ddf9668c7b20ff0d85dbd749ba6244b7e9 /gcc/diagnostic.h | |
parent | 2c8b23a2f0cdeb6458dad943a0ba24b36b427dd6 (diff) | |
download | gcc-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.h')
-rw-r--r-- | gcc/diagnostic.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index f0fae96275b..3b500964c7d 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -240,6 +240,8 @@ extern diagnostic_context *global_dc; #define errorcount diagnostic_kind_count (global_dc, DK_ERROR) /* Similarly, but for warnings. */ #define warningcount diagnostic_kind_count (global_dc, DK_WARNING) +/* Similarly, but for warnings promoted to errors. */ +#define werrorcount diagnostic_kind_count (global_dc, DK_WERROR) /* Similarly, but for sorrys. */ #define sorrycount diagnostic_kind_count (global_dc, DK_SORRY) |