Date: Wed, 27 Feb 2002 10:59:02 -0800 From: "David O'Brien" <obrien@freebsd.org> To: Christopher Sharp <christopher_sharp@web.de> Cc: current@freebsd.org Subject: Re: Why is xe building while commented out? Message-ID: <20020227105902.A79295@dragon.nuxi.com> In-Reply-To: <20020227154403.A16030@mephisto.cthulhu.net>; from christopher_sharp@web.de on Wed, Feb 27, 2002 at 03:44:03PM %2B0100 References: <20020226214312.GC99775@peitho.fxp.org> <20020226155132.O89108-100000@midearth.org> <20020227154403.A16030@mephisto.cthulhu.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020227105902.A79295>
