diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2004-08-30 04:48:34 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2004-08-30 04:48:34 +0000 |
commit | 0970c02a482e7aedd98647796d1bdf74447610cf (patch) | |
tree | 103c28a53c7590a4369c890c344849d943d7820c /gcc/diagnostic.h | |
parent | 421bd35f17ab8256fe87fc1425bade3fa88732d8 (diff) |
* c-opts.c (c_common_handle_option): <case OPT_Werror> set
global_dc->warning_as_error_requested.
* diagnostic.c (diagnostic_initialize): Tidy.
* diagnostic.h (diagnostic_context::x_data): Remove
(diagnostic_context::issue_warnings_are_errors_message): Rename
from warnings_are_errors_message.
(diagnostic_context::warning_as_error_requested): New.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@86750 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index 782f5028025..cc0a911d8f9 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -65,7 +65,10 @@ struct diagnostic_context /* True if we should display the "warnings are being tread as error" message, usually displayed once per compiler run. */ - bool warnings_are_errors_message; + bool issue_warnings_are_errors_message; + + /* True if it has been requested that warnings be treated as errors. */ + bool warning_as_error_requested; /* True if we should raise a SIGABRT on errors. */ bool abort_on_error; @@ -94,9 +97,6 @@ struct diagnostic_context int last_module; int lock; - - /* Hook for front-end extensions. */ - void *x_data; }; /* Client supplied function to announce a diagnostic. */ |