summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2007-05-19 04:48:08 +0000
committerkan <kan@FreeBSD.org>2007-05-19 04:48:08 +0000
commit00c7c13171556c9188f645bba9fd6c8847797591 (patch)
treea150e19aa7ac33123902026a78c5291300fd6b26 /sys
parentbf7afd355fbdd90d020c814e532e0b6d3bee1942 (diff)
downloadFreeBSD-src-00c7c13171556c9188f645bba9fd6c8847797591.zip
FreeBSD-src-00c7c13171556c9188f645bba9fd6c8847797591.tar.gz
Disable -Werror for now.
Remove -I- construct obsolete in GCC 4.2.
Diffstat (limited to 'sys')
-rw-r--r--sys/conf/kern.pre.mk4
-rw-r--r--sys/conf/kmod.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/conf/kern.pre.mk b/sys/conf/kern.pre.mk
index 4aaa687..8183470 100644
--- a/sys/conf/kern.pre.mk
+++ b/sys/conf/kern.pre.mk
@@ -53,7 +53,7 @@ C_DIALECT= -std=c99
NOSTDINC= -nostdinc
.endif
-INCLUDES= ${NOSTDINC} -I- ${INCLMAGIC} -I. -I$S
+INCLUDES= ${NOSTDINC} ${INCLMAGIC} -I. -I$S
# This hack lets us use the OpenBSD altq code without spamming a new
# include path into contrib'ed source files.
@@ -90,7 +90,7 @@ CFLAGS+= ${INCLUDES} -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.
CFLAGS+= -fno-common -finline-limit=${INLINE_LIMIT}
CFLAGS+= --param inline-unit-growth=100
CFLAGS+= --param large-function-growth=1000
-WERROR?= -Werror
+#WERROR?= -Werror
.endif
# XXX LOCORE means "don't declare C stuff" not "for locore.s".
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 3dd40db..d5cd78d 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -79,7 +79,7 @@ CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
. if !empty(CFLAGS:M-O[23s]) && empty(CFLAGS:M-fno-strict-aliasing)
CFLAGS+= -fno-strict-aliasing
. endif
-WERROR?= -Werror
+#WERROR?= -Werror
.endif
CFLAGS+= ${WERROR}
CFLAGS+= -D_KERNEL
@@ -93,7 +93,7 @@ C_DIALECT= -std=c99
NOSTDINC= -nostdinc
.endif
CFLAGS+= ${C_DIALECT}
-CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} -I- ${INCLMAGIC} ${CFLAGS:M-I*}
+CFLAGS:= ${CFLAGS:N-I*} ${NOSTDINC} ${INCLMAGIC} ${CFLAGS:M-I*}
.if defined(KERNBUILDDIR)
CFLAGS+= -DHAVE_KERNEL_OPTION_HEADERS -include ${KERNBUILDDIR}/opt_global.h
.endif
OpenPOWER on IntegriCloud