summaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-08 17:32:30 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2003-05-08 17:32:30 +0000
commitb8e0d3c33e851d55cd940e423040c35630c9fbba (patch)
treef7126f4110ebe0fc28531f50051ad47570d81838 /gcc/objc
parentb491e5dc46e94e641cda964d509dc37119fd200d (diff)
downloadgcc-b8e0d3c33e851d55cd940e423040c35630c9fbba.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66607 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-act.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c
index 6ba51df47ed..5cb7c1db6f2 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. */