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/objc/objc-act.c | |
parent | 0db79a6b35fc77ec500206c7442457dcc401a0e1 (diff) | |
download | gcc-13f0d49cdfb507a8e369b86d1c5038a08635cee7.zip gcc-13f0d49cdfb507a8e369b86d1c5038a08635cee7.tar.gz gcc-13f0d49cdfb507a8e369b86d1c5038a08635cee7.tar.bz2 |
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/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index cc4f67b..c6b9d5f 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3416,7 +3416,7 @@ error_with_ivar (message, decl, rawdecl) tree decl; tree rawdecl; { - diagnostic_count_error (global_dc, DK_ERROR); + diagnostic_count_diagnostic (global_dc, DK_ERROR); diagnostic_report_current_function (global_dc); @@ -6895,7 +6895,7 @@ warn_with_method (message, mtype, method) int mtype; tree method; { - if (!diagnostic_count_error (global_dc, DK_WARNING)) + if (!diagnostic_count_diagnostic (global_dc, DK_WARNING)) return; diagnostic_report_current_function (global_dc); |