summaryrefslogtreecommitdiff
path: root/sys/arch/powerpc
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-09 03:07:54 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2006-04-09 03:07:54 +0000
commit96af28e70eca24e66067eae1b00cfc51a58c9513 (patch)
tree4b9535df01b30ad946f08248b98da0b67c641e54 /sys/arch/powerpc
parent64c374962577b0b1efc3c9c7d82a1111f5313f5b (diff)
#ifdef lint wraps for va_start
Diffstat (limited to 'sys/arch/powerpc')
-rw-r--r--sys/arch/powerpc/include/va-ppc.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/powerpc/include/va-ppc.h b/sys/arch/powerpc/include/va-ppc.h
index 86353c6b2ef..46e20c5d6c7 100644
--- a/sys/arch/powerpc/include/va-ppc.h
+++ b/sys/arch/powerpc/include/va-ppc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: va-ppc.h,v 1.12 2006/01/06 18:53:05 millert Exp $ */
+/* $OpenBSD: va-ppc.h,v 1.13 2006/04/09 03:07:53 deraadt Exp $ */
/* GNU C varargs support for the PowerPC with either the V.4 or Windows NT calling sequences */
#include <sys/cdefs.h>
@@ -77,8 +77,12 @@ __extension__ ({ \
/* Calling __builtin_next_arg gives the proper error message if LASTARG is
not indeed the last argument. */
+#ifdef lint
+#define va_start(AP,LASTARG) ((AP) = (AP))
+#else
#define va_start(AP,LASTARG) \
(__builtin_next_arg (LASTARG), __va_start_common (AP, 0))
+#endif /* lint */
#else /* varargs.h support */
@@ -196,7 +200,7 @@ __extension__ (*({ \
__ptr; \
}))
-#define va_end(AP) ((void)0)
+#define va_end(AP)
/* Copy __gnuc_va_list into another variable of this type. */
#define __va_copy(dest, src) \
@@ -261,7 +265,7 @@ typedef char *__gnuc_va_list;
+ __va_rounded_size(TYPE))) \
- __va_rounded_size(TYPE)))
-#define va_end(AP) ((void)0)
+#define va_end(AP)
/* Copy __gnuc_va_list into another variable of this type. */
#define __va_copy(dest, src) (dest) = (src)