git: ad96424e31a8 - main - bsd.sys.mk: Add NO_WDANGLING_POINTER helper variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 Dec 2022 00:30:32 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=ad96424e31a8c8c87fac8077fd4304c6fb133e25
commit ad96424e31a8c8c87fac8077fd4304c6fb133e25
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-05 00:26:48 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-05 00:26:48 +0000
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
---
share/mk/bsd.sys.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 42290e96f859..9f3bd6de9a47 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -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