| Reenable some warnings, and add '-Werror', when building zfs.ko. |
| |
| diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/sys/modules/zfs/Makefile freebsd-10.4/sys/modules/zfs/Makefile |
| --- /var/archive3/public/freebsd-releng-10.4-src/sys/modules/zfs/Makefile 2017-09-29 08:19:59.000000000 +0800 |
| +++ freebsd-10.4/sys/modules/zfs/Makefile 2019-08-18 15:31:45.982729741 +0800 |
| @@ -106,14 +106,11 @@ |
| |
| 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 |
| +CWARNFLAGS+=-Werror |