Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pf_ioctl.c still wants -Wno-shadow



After the recent module-related update, compiling pf_ioctl.c fails with

<snip>
#   compile  PIZZA_PF/pf_ioctl.o
/u/netbsd-builds/developer/sparc/tools/bin/sparc--netbsdelf-gcc -mno-fpu 
-ffreestanding -fno-zero-initialized-in-bss -mcpu=supersparc -O2 -pipe 
-fno-strict-aliasing -std=gnu99 -Werror -Wall -Wno-main -Wno-format-zero-length 
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wshadow 
-Wcast-qual -Wwrite-strings -Wno-unreachable-code -Wno-pointer-sign 
-Wno-attributes -Wno-sign-compare 
--sysroot=/u/netbsd-builds/developer/sparc/destdir -I. 
-I/public/netbsd-developer/sys/../common/include 
-I/public/netbsd-developer/sys/arch -I/public/netbsd-developer/sys -nostdinc 
-DMAXDSIZ=(1024*1024*1024) -DNVNODE=40960 -D__CPU_SIMPLE_LOCK_NOINLINE 
-DMAXUSERS=64 -D_KERNEL -D_KERNEL_OPT -std=gnu99 
-I/public/netbsd-developer/sys/lib/libkern/../../../common/lib/libc/quad 
-I/public/netbsd-developer/sys/lib/libkern/../../../common/lib/libc/string 
-I/public/netbsd-developer/sys/lib/libkern/../../../common/lib/libc/arch/sparc/string
 -I/public/netbsd-developer/sys/dist/pf -c 
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c
cc1: warnings being treated as errors
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c: In function 'pfioctl':
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:2224:22: error: declaration 
of 'pa' shadows a previous local
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:1217:22: error: shadowed 
declaration is here
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:2269:22: error: declaration 
of 'pa' shadows a previous local
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:1217:22: error: shadowed 
declaration is here
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:2280:22: error: declaration 
of 'pa' shadows a previous local
/public/netbsd-developer/sys/dist/pf/net/pf_ioctl.c:1217:22: error: shadowed 
declaration is here
*** [pf_ioctl.o] Error code 1

nbmake: stopped in 
/var/obj/netbsd-builds/developer/sparc/sys/arch/sparc/compile/PIZZA_PF
1 error
</snip>

        hauke



Home | Main Index | Thread Index | Old Index