error.c (cp_print_error_function): Don't use embedded '\n' in output_printf.

* error.c (cp_print_error_function): Don't use embedded '\n' in
	output_printf.

From-SVN: r35906
This commit is contained in:
Gabriel Dos Reis 2000-08-23 09:31:12 +00:00 committed by Gabriel Dos Reis
parent e7977565ad
commit a64e73290a
2 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
* error.c (cp_print_error_function): Don't use embedded '\n' in
output_printf.
2000-08-23 Gabriel Dos Reis <gdr@codesourcery.com>
* decl.c (init_decl_processing): Remove bogus initialization.

View File

@ -2486,14 +2486,12 @@ cp_print_error_function (buffer, dc)
output_set_prefix (buffer, prefix);
if (current_function_decl == NULL)
{
output_add_string (buffer, "At global scope:");
output_add_newline (buffer);
}
output_add_string (buffer, "At global scope:");
else
output_printf
(buffer, "In %s `%s':\n", function_category (current_function_decl),
(buffer, "In %s `%s':", function_category (current_function_decl),
(*decl_printable_name) (current_function_decl, 2));
output_add_newline (buffer);
record_last_error_function ();
output_destroy_prefix (buffer);