Use __builtin_va_start for clang as well. This avoids a bug in the

warning engine for the compatibility alias.
This commit is contained in:
joerg 2020-03-20 01:06:11 +00:00
parent f81c99603b
commit 6f346dc5f4

View File

@ -1,4 +1,4 @@
/* $NetBSD: stdarg.h,v 1.4 2014/08/15 11:58:13 matt Exp $ */
/* $NetBSD: stdarg.h,v 1.5 2020/03/20 01:06:11 joerg Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -45,7 +45,7 @@
#define __builtin_va_end(a) /* nothing */
#define __builtin_va_copy(d, s) ((d) = (s))
#elif !(__GNUC_PREREQ__(4, 5) || \
(__GNUC_PREREQ__(4, 4) && __GNUC_PATCHLEVEL__ > 2))
(__GNUC_PREREQ__(4, 4) && __GNUC_PATCHLEVEL__ > 2) || defined(__clang__))
#define __builtin_va_start(ap, last) __builtin_stdarg_start((ap), (last))
#endif