summaryrefslogtreecommitdiffstats
path: root/sys/conf
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-01-26 15:49:23 +0000
committerimp <imp@FreeBSD.org>2005-01-26 15:49:23 +0000
commit913a9433e58112582c1d351bea1cf35353379609 (patch)
treeb36f5515d2e6c3f6a0a6a3d6aa53e5c39f068eb3 /sys/conf
parentee377142a374dc56fcb73ee5562f5d9de50a6225 (diff)
downloadFreeBSD-src-913a9433e58112582c1d351bea1cf35353379609.zip
FreeBSD-src-913a9433e58112582c1d351bea1cf35353379609.tar.gz
Generally force -Werror for modules when not compiling with icc. This
has burned me for the last time.
Diffstat (limited to 'sys/conf')
-rw-r--r--sys/conf/kmod.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
index 36b8d31..77de807 100644
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -69,7 +69,10 @@ OBJCOPY?= objcopy
.if ${CC} == "icc"
CFLAGS:= ${CFLAGS:C/(-x[^M^K^W]+)[MKW]+|-x[MKW]+/\1/}
+.else
+WERROR?= -Werror
.endif
+CFLAGS+= ${WERROR}
CFLAGS+= -D_KERNEL
CFLAGS+= -DKLD_MODULE
OpenPOWER on IntegriCloud