Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Define builtin va start differently f...
details: https://anonhg.NetBSD.org/src/rev/825b8d1f3dc8
branches: trunk
changeset: 572369:825b8d1f3dc8
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 31 17:28:38 2004 +0000
description:
Define builtin va start differently for lint, so that it does not produce
a warning.
diffstat:
sys/arch/alpha/include/stdarg.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 2d304ef2aabc -r 825b8d1f3dc8 sys/arch/alpha/include/stdarg.h
--- a/sys/arch/alpha/include/stdarg.h Fri Dec 31 14:55:27 2004 +0000
+++ b/sys/arch/alpha/include/stdarg.h Fri Dec 31 17:28:38 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdarg.h,v 1.13 2003/08/07 16:26:33 agc Exp $ */
+/* $NetBSD: stdarg.h,v 1.14 2004/12/31 17:28:38 christos Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@
#define __builtin_saveregs() (0)
#define __builtin_classify_type(t) (0)
#define __builtin_next_arg(t) ((t) ? 0 : 0)
-#define __builtin_stdarg_start(a, l) ((a) = ((l) ? 0 : 0))
+#define __builtin_stdarg_start(a, l) (a) = (va_list)(void *)&(l)
#define __builtin_va_arg(a, t) ((a) ? 0 : 0)
#define __builtin_va_end /* nothing */
#define __builtin_va_copy(d, s) ((d) = (s))
Home |
Main Index |
Thread Index |
Old Index