From nobody Tue Apr 11 20:48:18 2023 X-Original-To: dev-commits-src-main@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 4Pwybl06QHz44Y65; Tue, 11 Apr 2023 20:48:19 +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 4Pwybk6hc2z3PnW; Tue, 11 Apr 2023 20:48:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681246098; 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=dK9QgOhFz+KJzL+5FE/1WxnirSonwcTm8qB8NYLmDII=; b=Q2Z+jnkfYfFRm/XzVRIZaaGHSOKcSje4Y5TLs5k91gPFVduWmWURs8TNv50rsrmFGyeFGS Ku5Cqgo5HHTPRfxUI6U8R7axtFu2QfTtvkuCOPt61U7jLEYg1U+Vcykekt+kbKtFSe7bhw XughSI/dKh1+1oeahJe5egRUz1SrAlbIDNnlVwHSD0+LIA6wyW/H+/Tcy/Uqsd9HSXEsnP a+ke7apNviGkFf2vOcnJQu/r+CpWuifa5uUxNn/IacNvj1QZ3l6zztLeZ0rwDgJKfMmVhr 28oz8OLzjedVYmMWS5EnBvTlpWTPJpdb8yLexf0Q+uFN/u3xV009EwDLt9UUng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681246098; 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=dK9QgOhFz+KJzL+5FE/1WxnirSonwcTm8qB8NYLmDII=; b=kw/odwG6aa3MFP8Qtrz7KuA7uZAHx4GTparBjDPnZOx7dzrBAOM9kqlLOiAv9fir58rJcP g5zN5QVEw2EH5CakskBCoBspVjVVqhY/KMHJJnVj+XJYcqLrmJvI8BwJCH43olRWN9UTZ9 oqWOD6AQu3mM/7soQXtU2DijyUdBT2umB1BLsRlLwcWGC+HrPymdstPDpjjJPO2GUV03Tf AoB/h/OR25RceFGeGdFwjBC7n1CLIEpnRI4QgQgulapZp4uALzoPXw5vdy3s+iIZmyEwYv GPHil8m9hKqGTjUfvFnr42l2dyYtFSF3PmF0qM8ro9xzg9/4DhpYpiN+uUtCFQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681246098; a=rsa-sha256; cv=none; b=RfbkFIuvUamGKMKUG2RKgYZ2OW+6ntngjebG+H32S9p6oPHVFMcJT/gjN4LFvjnhvF5w8Z 6ivBw41Zr3qSSnQRSBJveNpl6dg21/JB+PQvZqPD+PTrUtr9av+9pfDI5n4W8kBuJT45y4 uwx+dwrcv4UgjAVBIIDuRmT+uHJM3qQQ3OGifG3JAAGe3CRdt5o8alrlXMXB03pLG8qFoJ MOF3YJA7udw3xKVgqiAMGDampJRbMneIvahGMsoCjUqMUtU6jCvuqrrPXOBF/MUHwwAfcr kQVE6WmbTAX8CFAHtRQtPmzheGQ+lUUb165vCbFpV5FNfA2BlTKtX712FqJiNw== 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 4Pwybk5pcmzXmQ; Tue, 11 Apr 2023 20:48:18 +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 33BKmIdC041563; Tue, 11 Apr 2023 20:48:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33BKmIb2041562; Tue, 11 Apr 2023 20:48:18 GMT (envelope-from git) Date: Tue, 11 Apr 2023 20:48:18 GMT Message-Id: <202304112048.33BKmIb2041562@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: cd800d3c9635 - main - Enable -Warray-parameter for clang. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: cd800d3c963578310e18e40846a38c77bc24fa0a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=cd800d3c963578310e18e40846a38c77bc24fa0a commit cd800d3c963578310e18e40846a38c77bc24fa0a Author: John Baldwin AuthorDate: 2023-04-11 20:47:59 +0000 Commit: John Baldwin CommitDate: 2023-04-11 20:47:59 +0000 Enable -Warray-parameter for clang. I fixed many of these previously for GCC 12 and make tinderbox passes with this enabled. Differential Revision: https://reviews.freebsd.org/D39378 --- share/mk/bsd.sys.mk | 2 +- sys/conf/kern.mk | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index b4c053d053dc..8446b8eeae62 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -95,7 +95,6 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable .endif .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 -CWARNFLAGS.clang+= -Wno-error=array-parameter CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif @@ -127,6 +126,7 @@ CWARNFLAGS+= -Wno-misleading-indentation NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .endif .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 +NO_WARRAY_PARAMETER= -Wno-array-parameter NO_WSTRICT_PROTOTYPES= -Wno-strict-prototypes NO_WDEPRECATED_NON_PROTOTYPE=-Wno-deprecated-non-prototype .endif diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 8676cb525db4..b7f89c78d19d 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -47,10 +47,9 @@ CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \ CWARNEXTRA+= -Wno-error=shift-negative-value CWARNEXTRA+= -Wno-address-of-packed-member .if ${COMPILER_VERSION} >= 150000 -# Clang 15 has much more aggressive diagnostics about inconsistently declared -# array parameters, K&R prototypes, mismatched prototypes, and unused-but-set -# variables. Make these non-fatal for the time being. -CWARNEXTRA+= -Wno-error=array-parameter +# Clang 15 has much more aggressive diagnostics about K&R prototypes, +# mismatched prototypes, and unused-but-set variables. Make these +# non-fatal for the time being. CWARNEXTRA+= -Wno-error=deprecated-non-prototype CWARNEXTRA+= -Wno-error=strict-prototypes CWARNEXTRA+= -Wno-error=unused-but-set-variable