Commit 5a6aa19c by Ulrich Weigand Committed by Ulrich Weigand

parse.y (issue_warning_error_from_context): Use va_list * instead of va_list parameter.

	* parse.y (issue_warning_error_from_context): Use va_list *
	instead of va_list parameter.
	(parse_error_context): Update call.
	(parse_warning_context): Likewise.

From-SVN: r88605
parent 609ae0e2
2004-10-06 Ulrich Weigand <uweigand@de.ibm.com>
* parse.y (issue_warning_error_from_context): Use va_list *
instead of va_list parameter.
(parse_error_context): Update call.
(parse_warning_context): Likewise.
2004-10-05 Zack Weinberg <zack@codesourcery.com> 2004-10-05 Zack Weinberg <zack@codesourcery.com>
* parse.y, parse-scan.y: Add list of diagnostic messages to * parse.y, parse-scan.y: Add list of diagnostic messages to
......
...@@ -101,9 +101,9 @@ static void parse_warning_context (tree cl, const char *msg, ...) ...@@ -101,9 +101,9 @@ static void parse_warning_context (tree cl, const char *msg, ...)
ATTRIBUTE_PRINTF_2; ATTRIBUTE_PRINTF_2;
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
static void issue_warning_error_from_context static void issue_warning_error_from_context
(source_location, const char *msg, va_list) ATTRIBUTE_PRINTF (2, 0); (source_location, const char *msg, va_list *) ATTRIBUTE_PRINTF (2, 0);
#else #else
static void issue_warning_error_from_context (tree, const char *msg, va_list) static void issue_warning_error_from_context (tree, const char *msg, va_list *)
ATTRIBUTE_PRINTF (2, 0); ATTRIBUTE_PRINTF (2, 0);
#endif #endif
static void parse_ctor_invocation_error (void); static void parse_ctor_invocation_error (void);
...@@ -3143,7 +3143,7 @@ issue_warning_error_from_context ( ...@@ -3143,7 +3143,7 @@ issue_warning_error_from_context (
#else #else
tree cl, tree cl,
#endif #endif
const char *msgid, va_list ap) const char *msgid, va_list *ap)
{ {
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
source_location saved_location = input_location; source_location saved_location = input_location;
...@@ -3156,7 +3156,7 @@ issue_warning_error_from_context ( ...@@ -3156,7 +3156,7 @@ issue_warning_error_from_context (
text_info text; text_info text;
text.err_no = errno; text.err_no = errno;
text.args_ptr = &ap; text.args_ptr = ap;
text.format_spec = msgid; text.format_spec = msgid;
pp_format_text (global_dc->printer, &text); pp_format_text (global_dc->printer, &text);
strncpy (buffer, pp_formatted_text (global_dc->printer), sizeof (buffer) - 1); strncpy (buffer, pp_formatted_text (global_dc->printer), sizeof (buffer) - 1);
...@@ -3204,9 +3204,9 @@ parse_error_context (tree cl, const char *msgid, ...) ...@@ -3204,9 +3204,9 @@ parse_error_context (tree cl, const char *msgid, ...)
va_list ap; va_list ap;
va_start (ap, msgid); va_start (ap, msgid);
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
issue_warning_error_from_context (EXPR_LOCATION (cl), msgid, ap); issue_warning_error_from_context (EXPR_LOCATION (cl), msgid, &ap);
#else #else
issue_warning_error_from_context (cl, msgid, ap); issue_warning_error_from_context (cl, msgid, &ap);
#endif #endif
va_end (ap); va_end (ap);
} }
...@@ -3222,9 +3222,9 @@ parse_warning_context (tree cl, const char *msgid, ...) ...@@ -3222,9 +3222,9 @@ parse_warning_context (tree cl, const char *msgid, ...)
do_warning = 1; do_warning = 1;
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
issue_warning_error_from_context (EXPR_LOCATION (cl), msgid, ap); issue_warning_error_from_context (EXPR_LOCATION (cl), msgid, &ap);
#else #else
issue_warning_error_from_context (cl, msgid, ap); issue_warning_error_from_context (cl, msgid, &ap);
#endif #endif
do_warning = 0; do_warning = 0;
va_end (ap); va_end (ap);
......
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