summaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 23:11:34 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2002-06-11 23:11:34 +0000
commita787dd05ab6a396e9a10603460ff8512df56bae6 (patch)
tree78d7bd65c43f7bf23d766026f9d3611afa6983e8 /gcc/diagnostic.h
parent55e5ddb45e327fd26667511d6b04a4246cb37a9d (diff)
downloadgcc-a787dd05ab6a396e9a10603460ff8512df56bae6.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h6
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 *));