Subject: Re: more fallout from WARNS=4?
To: None <ks@ub.uni-mainz.de>
From: Tom Ivar Helbekkmo <tih@eunetnorge.no>
List: current-users
Date: 12/06/2005 07:03:48
Tom Ivar Helbekkmo <tih@eunetnorge.no> writes:
> The exact same thing happens when cross compiling for the cobalt.
The Cobalt now compiles the whole system just fine -- but on the VAX,
building halts in libc/rpc:
# compile libc/svc_vc.o /usr/local/tools/bin/vax--netbsdelf-gcc -O2 \
-pipe -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \
-Wno-sign-compare -Wno-traditional -Wno-uninitialized -Wreturn-type \
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Werror -D_LIBC \
-DLIBC_SCCS -DSYSLIBC_SCCS -D_REENTRANT -I/usr/src/lib/libc/include \
-I/usr/src/lib/libc -DHESIOD -DINET6 -DNLS -DYP \
-I. -D__DBINTERFACE_PRIVATE -DI18NMODULE_MAJOR=4 -DCITRUS \
-I/usr/src/sys -I/usr/src/lib/libc/stdlib -I/usr/src/libexec/ld.elf_so \
-I/usr/src/lib/libc/dlfcn -DCITRUS_ICONV -DWITH_RUNE \
-I/usr/src/lib/libc -DPOSIX_MISTAKE -DCOMPAT__RES -DPORTMAP \
-DFLOATING_POINT -DALL_STATE -DUSG_COMPAT -nostdinc -isystem \
/usr/local/arena/vax/usr/include -c /usr/src/lib/libc/rpc/svc_vc.c -o \
svc_vc.o.tmp
cc1: warnings being treated as errors
/usr/src/lib/libc/rpc/svc_vc.c: In function `svc_vc_rendezvous_ops': /usr/src/lib/libc/rpc/svc_vc.c:771: warning: cast discards qualifiers from pointer target type
/usr/src/lib/libc/rpc/svc_vc.c:773: warning: cast discards qualifiers from pointer target type
/usr/src/lib/libc/rpc/svc_vc.c:775: warning: cast discards qualifiers from pointer target type
The offending lines read:
ops.xp_getargs =
(bool_t (*) __P((SVCXPRT *, xdrproc_t, caddr_t)))abort;
ops.xp_reply =
(bool_t (*) __P((SVCXPRT *, struct rpc_msg *)))abort;
ops.xp_freeargs =
(bool_t (*) __P((SVCXPRT *, xdrproc_t, caddr_t)))abort,
-tih
--
Don't ascribe to stupidity what can be adequately explained by ignorance.