bsd.sys.mk: Add NO_WSTRICT_PROTOTYPES like in kernel

Also add NO_WSTRICT_PROTOTYPES like we do for the kernel.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2023-02-19 00:02:12 -07:00
parent ef6f20ce47
commit d04c86717c

View File

@ -127,6 +127,7 @@ CWARNFLAGS+= -Wno-misleading-indentation
NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical
.endif
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes
NO_WDEPRECATED_NON_PROTOTYPE=-Wno-deprecated-non-prototype
.endif
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 100100