]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/diagnostic.def
PR middle-end/48087
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 17:36:47 +0000 (17:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Mar 2013 17:36:47 +0000 (17:36 +0000)
commitd9d1b0a4878ce9d0e469ba5dfea170214c7c2023
treee5e6b0ddf9668c7b20ff0d85dbd749ba6244b7e9
parent2c8b23a2f0cdeb6458dad943a0ba24b36b427dd6
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
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/cp/typeck.c
gcc/diagnostic.c
gcc/diagnostic.def
gcc/diagnostic.h
gcc/toplev.c