Subject: Re: can anyone help me fix warning: cast discards qualifiers from pointer target type
To: Martin Husemann <martin@duskware.de>
From: Chavdar Ivanov <ci4ic4@gmail.com>
List: current-users
Date: 06/02/2005 09:24:33
Different place, same error. Can't build.sh release overnight because of:

#   compile  GENERIC.MPACPI/vga_raster.o
/d/netbsd-builds/3_99/i386/tools/bin/i386--netbsdelf-gcc -pipe
-ffreestanding -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386
-I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=3D32
-D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c
/usr/src/sys/dev/ic/vga_raster.c
/usr/src/sys/dev/ic/vga_raster.c: In function `vga_cnattach':
/usr/src/sys/dev/ic/vga_raster.c:345: warning: assignment discards
qualifiers from pointer target type
/usr/src/sys/dev/ic/vga_raster.c:348: warning: assignment discards
qualifiers from pointer target type

*** Failed target:  vga_raster.o
*** Failed command: echo '# ' "compile GENERIC.MPACPI/vga_raster.o";
echo /d/netbsd-builds/3_99/i386/tools/bin/i386--netbsdelf-gcc -pipe
-ffreestanding -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386
-I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=3D32
-D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c
/usr/src/sys/dev/ic/vga_raster.c;
/d/netbsd-builds/3_99/i386/tools/bin/i386--netbsdelf-gcc -pipe
-ffreestanding -march=3Dpentium3 -O2 -pipe -Werror -Wall -Wno-main
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes
-Wstrict-prototypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual
-Wwrite-strings -Wno-sign-compare -fno-zero-initialized-in-bss -Di386
-I. -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=3D32
-D_KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c
/usr/src/sys/dev/ic/vga_raster.c
*** Error code 1

Stop.
nbmake: stopped in
/d/obj1/netbsd-builds/3_99/i386/obj/sys/arch/i386/compile/GENERIC.MPACPI

If you take -Werror from the command line, it works, though...=20


On 6/2/05, Martin Husemann <martin@duskware.de> wrote:
> On Wed, Jun 01, 2005 at 10:34:51PM -0700, Hisashi T Fujinaka wrote:
> > I'm not sure how to fix this error.
>=20
> I just made it compile, but can't test it easily - can you update and try=
 with
> rev. 1.171?
>=20
> Martin
>