Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/include Fix lint problem introduced in last ch...



details:   https://anonhg.NetBSD.org/src/rev/a83d4b811ed2
branches:  trunk
changeset: 513939:a83d4b811ed2
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Aug 18 03:27:02 2001 +0000

description:
Fix lint problem introduced in last change - if `lint' is defined,
#define away __alignof__.  Still produces some warnings, but at least
they're not fatal anymore.

Problem noted by Rafal Boni in private mail.

diffstat:

 sys/arch/mips/include/stdarg.h |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 92d109ca06d2 -r a83d4b811ed2 sys/arch/mips/include/stdarg.h
--- a/sys/arch/mips/include/stdarg.h    Sat Aug 18 00:41:38 2001 +0000
+++ b/sys/arch/mips/include/stdarg.h    Sat Aug 18 03:27:02 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stdarg.h,v 1.20 2001/08/17 07:15:16 simonb Exp $       */
+/*     $NetBSD: stdarg.h,v 1.21 2001/08/18 03:27:02 simonb Exp $       */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -48,7 +48,8 @@
 typedef _BSD_VA_LIST_  va_list;
 
 #ifdef __lint__
-#define __builtin_next_arg(t) ((t) ? 0 : 0)
+#define        __builtin_next_arg(t) ((t) ? 0 : 0)
+#define        __alignof__(t) (4)
 #endif
 
 #define        va_start(ap, last) \



Home | Main Index | Thread Index | Old Index