bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable.

This variable expands to -Wno-array-parameter on GCC 11+.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D36756
This commit is contained in:
John Baldwin 2022-09-28 14:01:04 -07:00
parent 7550e242ab
commit 409dae262f

View File

@ -114,6 +114,9 @@ CWARNFLAGS+= -Wno-misleading-indentation
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140000
NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical
.endif
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 110100
NO_WARRAY_PARAMETER= -Wno-array-parameter
.endif
.endif # WARNS
.if defined(FORMAT_AUDIT)