bsd.sys.mk: Add NO_WDANGLING_POINTER helper variable.

This variable expands to -Wno-dangling-pointer on GCC 12+.

Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D37532
This commit is contained in:
John Baldwin 2022-12-04 16:26:48 -08:00
parent 42fb28cef4
commit ad96424e31

View File

@ -125,6 +125,7 @@ NO_WARRAY_PARAMETER= -Wno-array-parameter
.endif
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100
NO_WUSE_AFTER_FREE= -Wno-use-after-free
NO_WDANGLING_POINTER= -Wno-dangling-pointer
.endif
.endif # WARNS