From owner-freebsd-current Wed Feb 27 10:59:13 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id E505D37B426 for ; Wed, 27 Feb 2002 10:59:04 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id g1RIx2m80762; Wed, 27 Feb 2002 10:59:02 -0800 (PST) (envelope-from obrien) Date: Wed, 27 Feb 2002 10:59:02 -0800 From: "David O'Brien" To: Christopher Sharp Cc: current@freebsd.org Subject: Re: Why is xe building while commented out? Message-ID: <20020227105902.A79295@dragon.nuxi.com> Reply-To: obrien@freebsd.org References: <20020226214312.GC99775@peitho.fxp.org> <20020226155132.O89108-100000@midearth.org> <20020227154403.A16030@mephisto.cthulhu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020227154403.A16030@mephisto.cthulhu.net>; from christopher_sharp@web.de on Wed, Feb 27, 2002 at 03:44:03PM +0100 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Feb 27, 2002 at 03:44:03PM +0100, Christopher Sharp wrote: > * Stephen L. Palmer (slpalmer@midearth.org) wrote: > > /usr/src/sys/dev/isp/isp.c: In function `isp_reset': > > /usr/src/sys/dev/isp/isp.c:633: warning: cast discards qualifiers from > > pointer target type > > *** Error code 1 > A small workaround is to change: > > - const u_int16_t *dv_ispfw; /* ptr to f/w */ > + u_int16_t *dv_ispfw; /* ptr to f/w */ > > in src/sys/dev/isp/ispvar.h:76 > > I don't know if this is ok but I does at least make the kernel build > and should not hurt as long as you don't use the isp device Fixes to "make it compile" are not desired. Fixes that are are *FIXES* are. If you are unable to understand why dv_ispfw is `const'; just follow the advice of adding: makeoptions NO_WERROR=true to your kernel configuration. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message