git: 409dae262ffc - main - bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Sep 2022 21:06:42 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=409dae262ffce0647ceb196193a34ad11e1e1edd
commit 409dae262ffce0647ceb196193a34ad11e1e1edd
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-28 21:01:04 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-09-28 21:01:04 +0000
bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable.
This variable expands to -Wno-array-parameter on GCC 11+.
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D36756
---
share/mk/bsd.sys.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 221e8b028479..d3c2b4974e88 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -114,6 +114,9 @@ CWARNFLAGS+= -Wno-misleading-indentation
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 140000
NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical
.endif
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 110100
+NO_WARRAY_PARAMETER= -Wno-array-parameter
+.endif
.endif # WARNS
.if defined(FORMAT_AUDIT)