blob: bf330065665db0fb03815727215a6f348a4073ad [file] [log] [blame] [raw]
Reenable some warnings when building zfs.ko.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/modules/zfs/Makefile freebsd-11.1/usr/src/sys/modules/zfs/Makefile
--- /usr/src/sys/modules/zfs/Makefile 2017-07-21 07:42:00.000000000 +0800
+++ freebsd-11.1/usr/src/sys/modules/zfs/Makefile 2019-03-22 15:00:06.478539000 +0800
@@ -106,14 +106,14 @@
CFLAGS+= -include ${SYSDIR}/cddl/compat/opensolaris/sys/debug_compat.h
CWARNFLAGS+=-Wno-missing-prototypes
-CWARNFLAGS+=-Wno-undef
+#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-uninitialized
CWARNFLAGS+=-Wno-unused
CWARNFLAGS+=-Wno-inline
CWARNFLAGS+=-Wno-switch
-CWARNFLAGS+=-Wno-pointer-arith
+#CWARNFLAGS+=-Wno-pointer-arith