diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-31 20:37:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-12-31 20:37:37 +0000 |
commit | 310b3fbf16a641fd246584ee97bc7c0b9c35048f (patch) | |
tree | e615ba9995833db9c3efd79d712c3e8fa5e8a3b6 /sys/arch/m88k | |
parent | 83171884833a240a9b3f9f42574bfba18bd85617 (diff) |
Provide a lint-friendly __va_copy(), as done on all other platforms.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/va-m88k.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/m88k/include/va-m88k.h b/sys/arch/m88k/include/va-m88k.h index 6fd984c913e..2ccd2cfd84e 100644 --- a/sys/arch/m88k/include/va-m88k.h +++ b/sys/arch/m88k/include/va-m88k.h @@ -1,4 +1,4 @@ -/* $OpenBSD: va-m88k.h,v 1.10 2008/10/23 21:25:07 kettenis Exp $ */ +/* $OpenBSD: va-m88k.h,v 1.11 2010/12/31 20:37:36 miod Exp $ */ /* Define __gnuc_va_list. */ @@ -87,6 +87,9 @@ __extension__(*({ \ #define va_end(AP) ((void)0) +#ifdef lint +#define __va_copy(dest, src) ((dest) = (src)) +#else /* Copy __gnuc_va_list into another variable of this type. */ #define __va_copy(dest, src) \ __extension__ ({ \ @@ -94,5 +97,6 @@ __extension__ ({ \ (struct __va_list_tag *)__builtin_alloca(sizeof(__gnuc_va_list)); \ *(dest) = *(src);\ }) +#endif /* lint */ #endif /* defined (_STDARG_H) || defined (_VARARGS_H) */ |