blob: 5d7b73183aa1c39160b0177f62d8029eab966f44 [file] [log] [blame] [raw]
Reenable some warnings, and add '-Werror', when building zfs.ko.
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/tmp/freebsd-src/usr/src/sys/modules/zfs/Makefile freebsd-10.3/usr/src/sys/modules/zfs/Makefile
--- /var/tmp/freebsd-src/usr/src/sys/modules/zfs/Makefile 2016-03-25 09:09:40.000000000 +0800
+++ freebsd-10.3/usr/src/sys/modules/zfs/Makefile 2018-01-14 00:02:00.996268477 +0800
@@ -107,14 +107,15 @@
CWARNFLAGS+=-Wno-unknown-pragmas
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
+CWARNFLAGS+=-Werror