From 5b4ff0de30ad231c30238edba6918335da1638a6 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Sat, 11 Feb 1995 15:12:05 -0800 Subject: [PATCH] (expand_builtin, case BUILT_IN_NEXT_ARG): Don't warn when no argument if this is a varargs routine. From-SVN: r8912 --- gcc/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/expr.c b/gcc/expr.c index f810a25b1f8..6e20f79b387 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -7386,7 +7386,7 @@ expand_builtin (exp, target, subtarget, mode, ignore) if (arg != last_parm) warning ("second parameter of `va_start' not last named argument"); } - else + else if (! current_function_varargs) /* Evidently an out of date version of ; can't validate va_start's second argument, but can still work as intended. */ warning ("`__builtin_next_arg' called without an argument"); -- 2.30.2