From faeb57b2dd3b91873c2a42c17b97331f45cd1c05 Mon Sep 17 00:00:00 2001 From: christos Date: Fri, 31 Dec 2004 17:28:38 +0000 Subject: [PATCH] Define builtin va start differently for lint, so that it does not produce a warning. --- sys/arch/alpha/include/stdarg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/alpha/include/stdarg.h b/sys/arch/alpha/include/stdarg.h index 32247565c0cb..8b84048ad04e 100644 --- a/sys/arch/alpha/include/stdarg.h +++ b/sys/arch/alpha/include/stdarg.h @@ -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 @@ typedef _BSD_VA_LIST_ va_list; #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))