Commit 5b4ff0de by Jim Wilson

(expand_builtin, case BUILT_IN_NEXT_ARG): Don't warn when

no argument if this is a varargs routine.

From-SVN: r8912
parent 469225d8
...@@ -7386,7 +7386,7 @@ expand_builtin (exp, target, subtarget, mode, ignore) ...@@ -7386,7 +7386,7 @@ expand_builtin (exp, target, subtarget, mode, ignore)
if (arg != last_parm) if (arg != last_parm)
warning ("second parameter of `va_start' not last named argument"); warning ("second parameter of `va_start' not last named argument");
} }
else else if (! current_function_varargs)
/* Evidently an out of date version of <stdarg.h>; can't validate /* Evidently an out of date version of <stdarg.h>; can't validate
va_start's second argument, but can still work as intended. */ va_start's second argument, but can still work as intended. */
warning ("`__builtin_next_arg' called without an argument"); warning ("`__builtin_next_arg' called without an argument");
......
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