summaryrefslogtreecommitdiffstats
path: root/sys/modules/zfs
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-02-21 11:11:06 +0000
committerru <ru@FreeBSD.org>2008-02-21 11:11:06 +0000
commitd078b9f274d4a84e9f9b313ffa1e7c2b80833daf (patch)
tree33b4b75ed77be76cf0dac3340734273820cd4672 /sys/modules/zfs
parent677283ab1dbb289486019e0595def958d24628d8 (diff)
downloadFreeBSD-src-d078b9f274d4a84e9f9b313ffa1e7c2b80833daf.zip
FreeBSD-src-d078b9f274d4a84e9f9b313ffa1e7c2b80833daf.tar.gz
Remove WARNS from here and compile with default kernel flags.
Switch off those warnings that ZFS sources do not pass.
Diffstat (limited to 'sys/modules/zfs')
-rw-r--r--sys/modules/zfs/Makefile24
1 files changed, 14 insertions, 10 deletions
diff --git a/sys/modules/zfs/Makefile b/sys/modules/zfs/Makefile
index 8ab1e3e..53ac7d4 100644
--- a/sys/modules/zfs/Makefile
+++ b/sys/modules/zfs/Makefile
@@ -68,14 +68,6 @@ SRCS+= vdev_geom.c
# Use FreeBSD's namecache.
CFLAGS+=-DFREEBSD_NAMECACHE
-CWARNFLAGS=-Wall
-CWARNFLAGS+=-Wno-unknown-pragmas
-CWARNFLAGS+=-Wno-missing-braces
-CWARNFLAGS+=-Wno-parentheses
-CWARNFLAGS+=-Wno-uninitialized
-CWARNFLAGS+=-Wno-unused
-CWARNFLAGS+=-Wno-switch
-
CFLAGS+=-I${.CURDIR}/../../compat/opensolaris
CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/fs/zfs
CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/uts/common/zmod
@@ -85,9 +77,21 @@ CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common/zfs
CFLAGS+=-I${.CURDIR}/../../contrib/opensolaris/common
CFLAGS+=-I${.CURDIR}/../../../include
-WARNS?=1
-
#CFLAGS+=-DDEBUG=1
#DEBUG_FLAGS=-g
.include <bsd.kmod.mk>
+
+CWARNFLAGS+=-Wno-unknown-pragmas
+CWARNFLAGS+=-Wno-missing-prototypes
+CWARNFLAGS+=-Wno-undef
+CWARNFLAGS+=-Wno-strict-prototypes
+CWARNFLAGS+=-Wno-cast-qual
+CWARNFLAGS+=-Wno-parentheses
+CWARNFLAGS+=-Wno-redundant-decls
+CWARNFLAGS+=-Wno-missing-braces
+CWARNFLAGS+=-Wno-uninitialized
+CWARNFLAGS+=-Wno-unused
+CWARNFLAGS+=-Wno-inline
+CWARNFLAGS+=-Wno-switch
+CWARNFLAGS+=-Wno-pointer-arith
OpenPOWER on IntegriCloud