Date: Mon, 5 Dec 2022 00:30:32 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: ad96424e31a8 - main - bsd.sys.mk: Add NO_WDANGLING_POINTER helper variable. Message-ID: <202212050030.2B50UWS1069556@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212050030.2B50UWS1069556>