From 13f0d49cdfb507a8e369b86d1c5038a08635cee7 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Tue, 11 Jun 2002 23:11:34 +0000 Subject: 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 * bad.c (ffebad_start_): Adjust calls to diagnostic_count_error. From-SVN: r54532 --- gcc/diagnostic.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/diagnostic.h') diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index bbc8e07..c98b8e1 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 *)); -- cgit v1.1