mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-19 15:33:56 +00:00
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
|
||||
.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 120100
|
||||
NO_WUSE_AFTER_FREE= -Wno-use-after-free
|
||||
NO_WDANGLING_POINTER= -Wno-dangling-pointer
|
||||
.endif
|
||||
.endif # WARNS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user