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:
parent
42fb28cef4
commit
ad96424e31
@ -125,6 +125,7 @@ NO_WARRAY_PARAMETER= -Wno-array-parameter
|
|||||||
.endif
|
.endif
|
||||||
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100
|
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100
|
||||||
NO_WUSE_AFTER_FREE= -Wno-use-after-free
|
NO_WUSE_AFTER_FREE= -Wno-use-after-free
|
||||||
|
NO_WDANGLING_POINTER= -Wno-dangling-pointer
|
||||||
.endif
|
.endif
|
||||||
.endif # WARNS
|
.endif # WARNS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user