Date: Sat, 2 Mar 2002 12:59:58 -0800 From: "David O'Brien" <obrien@FreeBSD.ORG> To: Bruce Evans <bde@zeta.org.au> Cc: arch@FreeBSD.ORG Subject: Re: Warning and lint(1) fixes. Review please. Message-ID: <20020302125958.B58520@dragon.nuxi.com> In-Reply-To: <20020302060943.U58081-100000@gamplex.bde.org>; from bde@zeta.org.au on Sat, Mar 02, 2002 at 06:36:13AM %2B1100 References: <200202281836.g1SIaog4051908@grimreaper.grondar.org> <20020302060943.U58081-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Mar 02, 2002 at 06:36:13AM +1100, Bruce Evans wrote: > > Index: i386/include/pcpu.h > > =================================================================== > > RCS file: /home/ncvs/src/sys/i386/include/pcpu.h,v > > retrieving revision 1.32 > > diff -u -d -r1.32 pcpu.h > > --- i386/include/pcpu.h 11 Dec 2001 23:33:40 -0000 1.32 > > +++ i386/include/pcpu.h 28 Feb 2002 10:44:43 -0000 > > @@ -32,8 +32,22 @@ > > #ifdef _KERNEL > > > > #ifndef __GNUC__ > > -#error gcc is required to use this file > > -#endif > > + > > +#ifndef lint > > +#error gcc or lint is required to use this file > > +#else /* lint */ > > +#define __PCPU_PTR(name) > > +#define __PCPU_GET(name) > > +#define __PCPU_SET(name, val) > > I can't think of any good way to handle this. remove the #ifndef lint wrapping and teach lint to ignore #error. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020302125958.B58520>