diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 15:38:18 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 15:38:18 +0000 |
| commit | fc63c6619228be9e23875f76998e3420152e44e1 (patch) | |
| tree | faf1fe67059e3aeb9bfd4e746934c597ccfa935a /sys | |
| parent | c6994e5b2f354ae168e80b47cb2c6fcd5a32438d (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/conf/files | 3 | ||||
| -rw-r--r-- | sys/conf/kern.mk | 1 | ||||
| -rw-r--r-- | sys/modules/fxp/Makefile | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/sys/conf/files b/sys/conf/files index 712738c8b913..3cb4eadd2e02 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1792,7 +1792,8 @@ dev/flash/cqspi.c optional cqspi fdt xdma dev/flash/mx25l.c optional mx25l dev/flash/n25q.c optional n25q fdt dev/flash/qspi_if.m optional cqspi fdt | n25q fdt -dev/fxp/if_fxp.c optional fxp +dev/fxp/if_fxp.c optional fxp \ + compile-with "${NORMAL_C} ${NO_WARRAY_BOUNDS}" dev/fxp/inphy.c optional fxp dev/gem/if_gem.c optional gem dev/gem/if_gem_pci.c optional gem pci diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index a58e0375c909..bc4204dcd0d6 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -25,6 +25,7 @@ NO_WUNNEEDED_INTERNAL_DECL= -Wno-error-unneeded-internal-declaration NO_WSOMETIMES_UNINITIALIZED= -Wno-error-sometimes-uninitialized NO_WCAST_QUAL= -Wno-error-cast-qual NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare +NO_WARRAY_BOUNDS= -Wno-error-array-bounds # Several other warnings which might be useful in some cases, but not severe # enough to error out the whole kernel build. Display them anyway, so there is # some incentive to fix them eventually. diff --git a/sys/modules/fxp/Makefile b/sys/modules/fxp/Makefile index fbe14392f69f..6a47028f8822 100644 --- a/sys/modules/fxp/Makefile +++ b/sys/modules/fxp/Makefile @@ -6,3 +6,5 @@ KMOD= if_fxp SRCS= device_if.h bus_if.h if_fxp.c inphy.c miibus_if.h miidevs.h pci_if.h .include <bsd.kmod.mk> + +CWARNFLAGS+= ${NO_WARRAY_BOUNDS} |
