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:
parent
7550e242ab
commit
409dae262f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user