diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2004-08-30 04:48:34 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2004-08-30 04:48:34 +0000 |
commit | 7783b402031d4ca66e2a29fa90855ea7fab965b0 (patch) | |
tree | 103c28a53c7590a4369c890c344849d943d7820c /gcc/c-opts.c | |
parent | 04204c2fbf4cb7db7e6b1ce8691ef99f7610f0ee (diff) | |
download | gcc-7783b402031d4ca66e2a29fa90855ea7fab965b0.tar.gz |
c-opts.c (c_common_handle_option): <case OPT_Werror> set global_dc->warning_as_error_requested.
* 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.
From-SVN: r86750
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 31bbb48d9b0..c16bebe5c38 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -420,6 +420,7 @@ c_common_handle_option (size_t scode, const char *arg, int value) case OPT_Werror: cpp_opts->warnings_are_errors = value; + global_dc->warning_as_error_requested = value; break; case OPT_Werror_implicit_function_declaration: |