Module Name: src
Committed By: martin
Date: Thu Apr 2 19:17:04 UTC 2020
Modified Files:
src/sys/sys [netbsd-9]: stdarg.h
Log Message:
Pull up following revision(s) (requested by joerg in ticket #816):
sys/sys/stdarg.h: revision 1.5
Use __builtin_va_start for clang as well. This avoids a bug in the
warning engine for the compatibility alias.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.4.24.1 src/sys/sys/stdarg.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/stdarg.h
diff -u src/sys/sys/stdarg.h:1.4 src/sys/sys/stdarg.h:1.4.24.1
--- src/sys/sys/stdarg.h:1.4 Fri Aug 15 11:58:13 2014
+++ src/sys/sys/stdarg.h Thu Apr 2 19:17:04 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.4 2014/08/15 11:58:13 matt Exp $ */
+/* $NetBSD: stdarg.h,v 1.4.24.1 2020/04/02 19:17:04 martin 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