summaryrefslogtreecommitdiffstats
path: root/gcc/c-format.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r--gcc/c-format.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c
index bf50c863622..fd9b200398a 100644
--- a/gcc/c-format.c
+++ b/gcc/c-format.c
@@ -996,13 +996,12 @@ check_function_format (status, attrs, params)
it warns as usual by replicating the innards of the warning
function from diagnostic.c. */
static void
-status_warning VPARAMS ((int *status, const char *msgid, ...))
+status_warning (int *status, const char *msgid, ...)
{
diagnostic_info diagnostic ;
-
- VA_OPEN (ap, msgid);
- VA_FIXEDARG (ap, int *, status);
- VA_FIXEDARG (ap, const char *, msgid);
+ va_list ap;
+
+ va_start (ap, msgid);
if (status)
*status = 1;
@@ -1014,7 +1013,7 @@ status_warning VPARAMS ((int *status, const char *msgid, ...))
report_diagnostic (&diagnostic);
}
- VA_CLOSE (ap);
+ va_end (ap);
}
/* Variables used by the checking of $ operand number formats. */
OpenPOWER on IntegriCloud