Subject: Re: kernel build failure with today's source
To: Steven M. Bellovin <smb@cs.columbia.edu>
From: Ed Gould <ed@left.wing.org>
List: current-users
Date: 06/28/2005 14:40:23
> #   compile  BERKSHIRE/cgd.o
> /usr/BUILD/tools/bin/i386--netbsdelf-gcc -ffreestanding -O2 -Werror -Wall -Wn
> o-m
> ain -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-pro
> tot
> ypes -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-co
> mpa
> re -fno-zero-initialized-in-bss -Di386 -I. -I/usr/src/sys/arch -I/usr/src/sys
>  -n
> ostdinc -DLKM -DRBUS_MIN_START=0x70000000 -DAUICH_ATTACH_MODEM -DMAXUSERS=32 
> -D_
> KERNEL -D_KERNEL_OPT -I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/cgd.c
> /usr/src/sys/dev/cgd.c: In function `cgd_ioctl_set':
> /usr/src/sys/dev/cgd.c:518: warning: assignment discards qualifiers from poin
> ter
>  target type
> 
> *** Failed target:  cgd.o
> 

Further ,making the "obvious" fix of changing the type of the LHS of 
that assignment from "char *" to "const char *" cascades to two more 
errors.

	--Ed