diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1995-02-11 15:12:05 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1995-02-11 15:12:05 -0800 |
commit | 5b4ff0de30ad231c30238edba6918335da1638a6 (patch) | |
tree | 63e24985eb22729d061de228aece2ab3f8e12ba5 /gcc/expr.c | |
parent | 469225d8467fa26d92e1a66ab82e1f7963e3a7cc (diff) | |
download | gcc-5b4ff0de30ad231c30238edba6918335da1638a6.tar.gz |
(expand_builtin, case BUILT_IN_NEXT_ARG): Don't warn when
no argument if this is a varargs routine.
From-SVN: r8912
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <stdarg.h>; can't validate va_start's second argument, but can still work as intended. */ warning ("`__builtin_next_arg' called without an argument"); |