From 67f7893c065e139636c94214923b2cdbad9971d7 Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Thu, 8 May 2003 17:32:30 +0000 Subject: objc-act.c (error_with_ivar): Don't use error_with_file_and_line. * objc/objc-act.c (error_with_ivar): Don't use error_with_file_and_line. (warn_with_method): Don't use warning_with_file_and_line. From-SVN: r66607 --- gcc/objc/objc-act.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'gcc/objc') diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 6ba51df..5cb7c1d 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -3543,10 +3543,8 @@ error_with_ivar (message, decl, rawdecl) diagnostic_report_current_function (global_dc); - error_with_file_and_line (DECL_SOURCE_FILE (decl), - DECL_SOURCE_LINE (decl), - "%s `%s'", - message, gen_declaration (rawdecl, errbuf)); + error ("%H%s `%s'", &DECL_SOURCE_LOCATION (decl), + message, gen_declaration (rawdecl, errbuf)); } @@ -7116,11 +7114,8 @@ warn_with_method (message, mtype, method) diagnostic_report_current_function (global_dc); /* Add a readable method name to the warning. */ - warning_with_file_and_line (DECL_SOURCE_FILE (method), - DECL_SOURCE_LINE (method), - "%s `%c%s'", - message, mtype, - gen_method_decl (method, errbuf)); + warning ("%H%s `%c%s'", &DECL_SOURCE_LOCATION (method), + message, mtype, gen_method_decl (method, errbuf)); } /* Return 1 if METHOD is consistent with PROTO. */ -- cgit v1.1