git: 300df19195f8 - stable/13 - bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Fri, 11 Nov 2022 18:36:33 UTC
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=300df19195f832d637bc5c7f300dfacf9114eea3

commit 300df19195f832d637bc5c7f300dfacf9114eea3
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-09-28 21:01:04 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-11-11 18:18:52 +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
    
    (cherry picked from commit 409dae262ffce0647ceb196193a34ad11e1e1edd)
---
 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 ae4255f8bace..94b80d25f9ed 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)