From nobody Fri Nov 11 18:36:33 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N86qQ12q6z4dbQV; Fri, 11 Nov 2022 18:36:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N86qQ0b8hz3tfm; Fri, 11 Nov 2022 18:36:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=arBpDzwrfocYGFbReMyqMVlt6cDiphUn8yPlNcvh80Y=; b=k2nYNHxojZSQQdP9cazbCO9SnS/NbzV+PnvPJ5RuFA+RbigpicgjPB2KG7i9zTIjf5GwdM Nnrf7vAMck9peagmE6yRLsR7aESUy8aZgDgOK4BDqPdEZWZGEZ7WlN21FKvD72wiaOAxBw bm7wbPX0kr5gfFzTRdowLfni2E8b9Xxm3jgu0P1gnh/QXC+qGVJRdkZuahhk83rrR6iYRH kiiT2N8ZsCtkO9pMNvJUItCr9Fl+WQcuNcSBRmTYzg5v3s3w1AeZmMLZfWoev8h/QxNe30 PuTP6BpMolgtk85Qm7TgNXNp8eh77v+yZTB9xGPmogAYRKvRuM6+HeR1GErZbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668191794; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=arBpDzwrfocYGFbReMyqMVlt6cDiphUn8yPlNcvh80Y=; b=co1S9gE6Bi00Nz64dR3u7oCCZajMVOhq1N2aTl7Bx4ekn5ezauFZV4ppc8UEG7nxTyexHa c1yc9N+DFLvVwgRrMaKBd0RWaDtkuklhW+nBA+9nl3lx14w+PBNAzNkOKOkbYKxSQNAdlK 8OCyazQwLdypvgsRRf/Y4rZ5u3a4CvzluQm37EW5H7EARMMPYHux7+aI5Nfls/s04G/D+j joDtXyfH0yezJP9lVO5NuJAo06yKaEUiDm8viIq9LApHVSXPmF6mws+Zv/Owdm1UdNHr39 zmWZX3rIv0cVWmSUZaiCMyOvNgO5bIVfW15xVhPSMidFXjMkbQn66ZjyEPBx0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668191794; a=rsa-sha256; cv=none; b=oevAYRXT3wU0bE3QODB6GPBt00PcXLWxgV14akRiIYAcUHDZO2Q4upiIYBYfohrzpGrF5B i8frxp3pf8K170bZqFMgXFHH2Lkf22VrDnFcvlxdCmgkrGpvX0gL4cGR0aDaPylN+ufVkw rTFuuypu+MOdaJIlrF2dpPVjgd3e4Z9GsD4fdUx1DgwfxEUqFHkpEkSE7A+j78JYG3aN8a ruOnzh0AYgPVBl0CCvPzfxAlYhyJx0EYS3y10Eohho1/kEjodrMrNlaZ34a/eYjZoSXALy T0Nl3nYKd5vjvxirNxXphMG0pUKfLcy/Nwlg3gXPl7puckKYeIFRigXFzk1A3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4N86qP6nc8ztJk; Fri, 11 Nov 2022 18:36:33 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ABIaXWG003752; Fri, 11 Nov 2022 18:36:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ABIaXN8003751; Fri, 11 Nov 2022 18:36:33 GMT (envelope-from git) Date: Fri, 11 Nov 2022 18:36:33 GMT Message-Id: <202211111836.2ABIaXN8003751@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 300df19195f8 - stable/13 - bsd.sys.mk: Add NO_WARRAY_PARAMETER helper variable. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 300df19195f832d637bc5c7f300dfacf9114eea3 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=300df19195f832d637bc5c7f300dfacf9114eea3 commit 300df19195f832d637bc5c7f300dfacf9114eea3 Author: John Baldwin AuthorDate: 2022-09-28 21:01:04 +0000 Commit: John Baldwin 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)