Commit 67f7893c by Gabriel Dos Reis Committed by Gabriel Dos Reis

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
parent c8608cd6
2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
* 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.
2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net> 2003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
* stmt.c (emit_locus): New macro. * stmt.c (emit_locus): New macro.
...@@ -6,7 +12,7 @@ ...@@ -6,7 +12,7 @@
(struct stmt_status): Replace members x_emit_filename and (struct stmt_status): Replace members x_emit_filename and
x_emit_lineno with x_emit_locus. x_emit_lineno with x_emit_locus.
(set_file_and_line_for_stmt): Adjust. (set_file_and_line_for_stmt): Adjust.
(expand_expr_stmt_value): Don't use warning_with_file_and_file. (expand_expr_stmt_value): Don't use warning_with_file_and_line.
(warn_if_unused_value): Likewise. (warn_if_unused_value): Likewise.
(check_seenlabel): Likewise. (check_seenlabel): Likewise.
......
...@@ -3543,10 +3543,8 @@ error_with_ivar (message, decl, rawdecl) ...@@ -3543,10 +3543,8 @@ error_with_ivar (message, decl, rawdecl)
diagnostic_report_current_function (global_dc); diagnostic_report_current_function (global_dc);
error_with_file_and_line (DECL_SOURCE_FILE (decl), error ("%H%s `%s'", &DECL_SOURCE_LOCATION (decl),
DECL_SOURCE_LINE (decl), message, gen_declaration (rawdecl, errbuf));
"%s `%s'",
message, gen_declaration (rawdecl, errbuf));
} }
...@@ -7116,11 +7114,8 @@ warn_with_method (message, mtype, method) ...@@ -7116,11 +7114,8 @@ warn_with_method (message, mtype, method)
diagnostic_report_current_function (global_dc); diagnostic_report_current_function (global_dc);
/* Add a readable method name to the warning. */ /* Add a readable method name to the warning. */
warning_with_file_and_line (DECL_SOURCE_FILE (method), warning ("%H%s `%c%s'", &DECL_SOURCE_LOCATION (method),
DECL_SOURCE_LINE (method), message, mtype, gen_method_decl (method, errbuf));
"%s `%c%s'",
message, mtype,
gen_method_decl (method, errbuf));
} }
/* Return 1 if METHOD is consistent with PROTO. */ /* Return 1 if METHOD is consistent with PROTO. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment