Module Name: src
Committed By: joerg
Date: Fri Mar 20 01:06:12 UTC 2020
Modified Files:
src/sys/sys: stdarg.h
Log Message:
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.5 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.5
--- src/sys/sys/stdarg.h:1.4 Fri Aug 15 11:58:13 2014
+++ src/sys/sys/stdarg.h Fri Mar 20 01:06:11 2020
@@ -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