From nobody Wed Nov 06 20:21:54 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 4XkGnt4hKpz5bn06; Wed, 06 Nov 2024 20:21:54 +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 4XkGnt4D7gz41Dp; Wed, 6 Nov 2024 20:21:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924514; 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=hILWpYEBnU09bTatA6p227oG+NEhJpEz/BxrHd3Eawk=; b=GQjcWUpbX9JrBmIUte7irC6frBnozIlZ3+mbmJzbj04uGPM1cc3Bjpl0Qx8o9oLnosr1wV 1/gmJMpBDNED+pTAQzZGiXhvbsr6cqV9iLepuMNJu+cyPbZhLNikWalGomcRtpzXaAw5BF b7QdCIOBsAfp8XV1rcEXKm+fmIb71/Mqvb2yVxMso1tcIZR+h58Z2sXrrzW2n1UAWpDqcb /ZmszzmbI3eXvcbiMyb/aIiGR9aBHbBgLjDCWga1spEIq4SxmeD9zYxDL0EkXMEHe5obTl 99FZV4GaT+jrP4gT1fK0KQqk9BAGByS2sOmKLGL6//1gtve9ho9ztz/ByZjGaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730924514; 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=hILWpYEBnU09bTatA6p227oG+NEhJpEz/BxrHd3Eawk=; b=bFi7UTEh3rluNLN+dpJi53p1vVjvplNxZFyKK97owEH+v1T2aYNOuVtay8BAgW1wIsEKcr 96jAvbbnbpU0o9RwqgEuk1UVPuKWVd3XdkBzRmVliAsOD25okxI+ucQBZe1Coq7ouiXRym XF0RnXk8eZh9S1FmdKHv/+AAkebxfBGHt5vAdfuNLQ4x76D2RkVLdwu2biwCo7RGrI2OMK Z3tL8q9Q7qu0pCFmMCMBnP65tb8gI91GeSEjl4AFOYrlmsXKI1lYoEMkcx581Fe9V2oR+Q 7F+9IVNzDaMNYrtNP5gPHXABYheQpgmmsPCJnmeUxP0++b9fjY34t3vLSyn1iA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730924514; a=rsa-sha256; cv=none; b=ZhHctR982b7eW/dnwq6GaV1aDmktG4c4yR8hEsOxtG01D1GbIO+qRggpIf0I43cBXm/ub5 LkR7twWjHHM7AQ2mb+oUaxOpeobBLh4zp33GmgycvcODKKqtjKVO+mFezzOaXentNe4C+P fACDyKkwudszvub/YnFQzGoRRLsdrR1cFVPq9azj/ixtKm6EEBtxRUSQKRTHLDROoQ7M7e mTIAozjh+JOKK4hBksBxoGIe57pfMayF5GeSLznY6F4cWQTP/VfIBLCzPX3myW3zLEzJPb cstxBPm3g5ezAQF28zec8p7K03eLiYwhaslMk32x/pKbkUpZWgDGU/Yv4yB1ww== 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 4XkGnt3hLkzFS8; Wed, 6 Nov 2024 20:21:54 +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 4A6KLsAQ017998; Wed, 6 Nov 2024 20:21:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6KLsf1017995; Wed, 6 Nov 2024 20:21:54 GMT (envelope-from git) Date: Wed, 6 Nov 2024 20:21:54 GMT Message-Id: <202411062021.4A6KLsf1017995@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: de45d36ffb60 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: de45d36ffb604798c22f7ee556d774490902c1e1 Auto-Submitted: auto-generated The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=de45d36ffb604798c22f7ee556d774490902c1e1 commit de45d36ffb604798c22f7ee556d774490902c1e1 Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 18:52:10 +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 a1be8a8a2225..061c6b36f84d 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -88,6 +88,10 @@ CWARNFLAGS.clang+= -Wno-unused-const-variable .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 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\