From nobody Wed Nov 06 20:22:10 2024 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 4XkGpB2wVZz5bnHZ; Wed, 06 Nov 2024 20:22:10 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XkGpB2TdFz41v3; Wed, 6 Nov 2024 20:22:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924530; 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=/HAIIRdMWmnPJzHATpx2MPcFL1fSLCwxNGiiXfSLGPo=; b=eVNByzcw1v8tDe+bL/Kb+PGoHh/rT9TEIdlV8x0X9fr9LrdJbAuCXlpdvhuigkWRuIfo48 8Fd9DolwaPu9QfK3sPECwBEwNFBgGVU2IiWpVjVFAvUYY3iEktqHWtMLk2Zwk52mWKLxim gq7d5KPjyr+3DnJwoJQ1XpwYQTYYTZJjbGXyKDliGgVLYnevvGTDIMd0jKwkRr9mD49Ui2 9DiGvo3bG5UwRuR7lSycTLFFi6Np747kcJeDDTr966SYRnfyQK59ShFNQ5tL7155mIZoeV C8k9rws/Pc9bfIlfNC5aPwhFxGmO5g9ZovGyaWcv3pIrzzvy3nr7jLxr906mNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924530; 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=/HAIIRdMWmnPJzHATpx2MPcFL1fSLCwxNGiiXfSLGPo=; b=BDmMpSCtErGddxlqwwW3ujRt9SZyFhgxkQq6xPuOjmXRcSf4VwXQ2zeyv8uznHFwF92uHX /F9kmElmdsUncrRZ5KR7kcdeCX+iefmyxMz19kPs5JtQG/jglDKmMrSkn7nRjdgrTnAh7z 9zLAwZT6fYHbMaJQWS+ZjvwGgrpXa9U5bCYGSoG/ZsZ+RruogvhU4Ht1UQNpNB5ZD47q3X Tff1O81Vz+ySRIy25LSpAdBtjFzSekX7vUoXmvRzJvD0lke1H0+HgK7z/szL2sMOPx1RZi ApMwVP+kX8BjWle/AYFhlfBOMR5OLeHxRpyPBGH/i7VrpxTkfPaSxtpicFouyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730924530; a=rsa-sha256; cv=none; b=RGQoeYtzHXHwlNrmIZl+oC6VRFhHUpiAoGHSC6He8N7zcJEqZL6BqruST180j9YNsHz+OH a6IpVzjGx4mBx61ZmmWVp17GSAHc1rai/m8brH1INqxMkRjFu9g8a8cuyFb4pG/9eWg1LL cmsdsd/s/65dH4ZfpDZYOO+6HIbJaxQ35X+m9x3hBXmcmUlXIlI2R1kLOcvDH769N+mcvI 1zq6sP4+xjFdW1FdBgOj1hd07tA3rZDOvH8BOgRnMdIdQdBUf1JJhl3LquMBP+rFYkAGfJ uipYI+CRLBytsqDPQKcYA4KDmqeHjQraATFTuiXg4PcSGjCYtWZ9BF4ao+4mbg== 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 4XkGpB24h3zGJd; Wed, 6 Nov 2024 20:22:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A6KMAs0018270; Wed, 6 Nov 2024 20:22:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6KMAOr018267; Wed, 6 Nov 2024 20:22:10 GMT (envelope-from git) Date: Wed, 6 Nov 2024 20:22:10 GMT Message-Id: <202411062022.4A6KMAOr018267@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 5221ce15aa9e - stable/13 - bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 5221ce15aa9e0097b365b305c20d05154b67571c Auto-Submitted: auto-generated The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=5221ce15aa9e0097b365b305c20d05154b67571c commit 5221ce15aa9e0097b365b305c20d05154b67571c Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 18:52:15 +0000 bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. PR: 280562 MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5) --- share/mk/bsd.sys.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 83d3004adf90..d28bf09f2cb2 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -95,6 +95,10 @@ CWARNFLAGS.clang+= -Wno-error=array-parameter CWARNFLAGS.clang+= -Wno-error=deprecated-non-prototype CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 190000 +# Similar to gcc >= 8.1 -Wno-error=cast-function-type below +CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\