]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/48087 (-Wall -Werror adds warnings over and above those generated...
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Mar 2013 17:36:47 +0000 (18:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Mar 2013 17:36:47 +0000 (18:36 +0100)
commit37e9911604ec069ee198879bb3a4af5d47b82a6b
treee5e6b0ddf9668c7b20ff0d85dbd749ba6244b7e9
parentc845cfe1af6a72609e04a68b967f2b919599b32b
re PR middle-end/48087 (-Wall -Werror adds warnings over and above those generated by -Wall)

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.

From-SVN: r196887
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