These are the things that the tinderbox has problems with because it

doesn't use the default CFLAGS which contain -fno-strict-aliasing.

Until the code is cleaned up, just add -fno-strict-aliasing to the
CFLAGS of these for the tinderboxes' sake, allowing the rest of the
tree to have -Werror enabled again.
This commit is contained in:
John Birrell 2007-11-20 02:07:30 +00:00
parent 3ad1a3ea69
commit 0aad0f2282
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173766
7 changed files with 7 additions and 0 deletions

View File

@ -25,6 +25,7 @@ CFLAGS+=-I${.CURDIR}/sys
CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
CFLAGS+=-fno-builtin
CFLAGS+=-fno-strict-aliasing
# Uncomment this if you want libkse to contain debug information for
# thread locking.

View File

@ -27,6 +27,7 @@ CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf
CFLAGS+=-I${.CURDIR}/../../libexec/rtld-elf/${MACHINE_ARCH}
CFLAGS+=-I${.CURDIR}/../libthread_db
CFLAGS+=-Winline
CFLAGS+=-fno-strict-aliasing
# CFLAGS+=-DSYSTEM_SCOPE_ONLY

View File

@ -8,6 +8,7 @@ SRCS= if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \
unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
WARNS?= 3
CFLAGS+=-fno-strict-aliasing
CFLAGS+=-DIPSEC
CFLAGS+=-DSCTP

View File

@ -59,5 +59,6 @@ MAN= acpidb.8
WARNS?= 2
CFLAGS+= -DACPI_EXEC_APP
CFLAGS+=-fno-strict-aliasing
.include <bsd.prog.mk>

View File

@ -5,6 +5,7 @@ MAN= kldxref.8
SRCS= kldxref.c ef.c ef_obj.c
WARNS?= 2
CFLAGS+=-fno-strict-aliasing
.if exists(ef_${MACHINE_ARCH}.c)
SRCS+= ef_${MACHINE_ARCH}.c

View File

@ -4,6 +4,7 @@ PROG= nscd
MAN= nscd.conf.5 nscd.8
WARNS?= 2
CFLAGS+=-fno-strict-aliasing
SRCS= agent.c nscd.c nscdcli.c cachelib.c cacheplcs.c debug.c log.c \
config.c query.c mp_ws_query.c mp_rs_query.c singletons.c protocol.c \
parser.c

View File

@ -15,6 +15,7 @@ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \
yppasswd_private_xdr.c yppasswd_svc.c
WARNS?= 4
CFLAGS+= -fno-strict-aliasing
CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw \
-I${.CURDIR}/../../usr.sbin/ypserv \
-I${.CURDIR}/../../libexec/ypxfr \