diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-10 13:48:04 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-06-10 13:48:04 +0000 |
commit | a587b03b0bad479328832d9cf1fdfae26d57808d (patch) | |
tree | 0beb92444cb25b52bba6afa1198fdb6b47f5f556 /gcc/diagnostic.c | |
parent | 098ab62d6604a8e5da61899a4acb4c5499ec58f5 (diff) | |
download | gcc-a587b03b0bad479328832d9cf1fdfae26d57808d.tar.gz |
gcc/
2001-06-10 Mark Mitchell <mark@codesourcery.com>
Gabriel Dos Reis <gdr@codesourcery.com>
* Makefile.in (c-parse.o): Depend on diagnostic.h
(dwarf2out.o): Likewise.
* dwarf2out.c: #include diagnostic.h
* toplev.h (warningcount, errorcount, sorrycount): Remove
declarations.
* toplev.c (warningcount, errorcount, sorrycount): Remove
definitions.
* diagnostic.h (struct output_buffer): Reorder fields.
(diagnostic_kind_count): New macro.
(errorcount, warningcount, sorrycount): Define as macros.
(diagnostic_report_warnings_p): New macro.
(output_state): Add diagnostic_count field.
* diagnostic.c (warningcount, errorcount, inhibit_warnings):
Remove tentative declaration.
(count_error): Use diagnostic_report_warnings_p.
* c-parse.in: #include diagnostic.h
ch/
2001-06-10 Gabriel Dos Reis <gdr@codesourcery.com>
* decl.c: #include diagnostic.h
* actions.c: #include diagnostic.h
* Makefile.in (actions.o): Depend on diagnostic.h
(decl.o): Depend on diagnostic.h
cp/
2001-06-10 Mark Mitchell <mark@codesourcery.com>
Gabriel Dos Reis <gdr@codesourcery.com>
* Make-lang.in (cp/call.o): Depend on diagnostic.h
(cp/typeck.o): Depend on diagnostic.h
(cp/typeck2.o): Depend on diagnostic.h
(cp/repo.o): Depend on dignostic.h
* typeck.c: #include diagnostic.h
(convert_for_initialization): Remove extern declaration for
warningcount and errorcount.
* call.c: #include diagnostic.h
(convert_like_real): Remove extern declaration for warnincount and
errorcount.
* repo.c: #include diagnostic.h
* typeck2.c: #include diagnostic.h
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43140 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index eb0e5214fa5..bb75846c99b 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -103,10 +103,7 @@ static void default_diagnostic_finalizer PARAMS ((output_buffer *, static void error_recursion PARAMS ((void)) ATTRIBUTE_NORETURN; extern int rtl_dump_and_exit; -extern int inhibit_warnings; extern int warnings_are_errors; -extern int warningcount; -extern int errorcount; /* Front-end specific tree formatter, if non-NULL. */ printer_fn lang_printer = NULL; @@ -1049,9 +1046,7 @@ int count_error (warningp) int warningp; { - if (warningp - && (inhibit_warnings - || (in_system_header && !warn_system_headers))) + if (warningp && !diagnostic_report_warnings_p ()) return 0; if (warningp && !warnings_are_errors) |