diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2002-06-11 23:11:34 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2002-06-11 23:11:34 +0000 |
commit | 13f0d49cdfb507a8e369b86d1c5038a08635cee7 (patch) | |
tree | 78d7bd65c43f7bf23d766026f9d3611afa6983e8 /gcc/diagnostic.h | |
parent | 0db79a6b35fc77ec500206c7442457dcc401a0e1 (diff) | |
download | gcc-13f0d49cdfb507a8e369b86d1c5038a08635cee7.tar.gz |
objc-act.c (warn_with_ivar): Adjust calls to diagnostic_count_error.
* objc/objc-act.c (warn_with_ivar): Adjust calls to
diagnostic_count_error.
(warn_with_method): Likewise.
* diagnostic.h (warnings_are_errors_message): New field of
diagnostic_context.
(diagnostic_count_error): Rename to
diagnostic_count_diagnostic to
match semantics.
* diagnostic.c: Adjust calls to diagnostic_count_error through
out.
(diagnostic_count_diagnostic): Make aware of other kinds of
diagnostics.
(diagnostic_initialize): Initialize
warnings_are_errors_message field.
f/
2002-06-12 Gabriel Dos Reis <gdr@codesourcery.com>
* bad.c (ffebad_start_): Adjust calls to
diagnostic_count_error.
From-SVN: r54532
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index bbc8e079ac5..c98b8e13b6e 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -187,6 +187,10 @@ struct diagnostic_context /* The number of times we have issued diagnostics. */ int diagnostic_count[DK_LAST_DIAGNOSTIC_KIND]; + /* True if we should display the "warnings are being tread as error" + message, usually displayed once per compiler run. */ + bool warnings_are_errors_message; + /* This function is called before any message is printed out. It is responsible for preparing message prefix and such. For example, it might say: @@ -284,7 +288,7 @@ extern void diagnostic_initialize PARAMS ((diagnostic_context *)); extern void diagnostic_report_current_module PARAMS ((diagnostic_context *)); extern void diagnostic_report_current_function PARAMS ((diagnostic_context *)); extern void diagnostic_flush_buffer PARAMS ((diagnostic_context *)); -extern bool diagnostic_count_error PARAMS ((diagnostic_context *, +extern bool diagnostic_count_diagnostic PARAMS ((diagnostic_context *, diagnostic_t)); extern void diagnostic_report_diagnostic PARAMS ((diagnostic_context *, diagnostic_info *)); |