From nobody Wed Nov 06 21:52:23 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 4XkJpH35qLz5btNw; Wed, 06 Nov 2024 21:52:23 +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 4XkJpH2cmyz4Cps; Wed, 6 Nov 2024 21:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730929943; 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=4uyC6wWzfQx02RWN8SnJzClvkrQjJuncIeiX4YkIlzg=; b=knxOHBROpFrXIA82QFy44J4GIwG+GGhT8vyaV7GjYqeG4AeU01AOzJk+ytc79o4kNE4sWw qYm7fv8y4xFfA5fBUoZ8nH0EDKlUJODVPZXrStTFT/c67bC06AO+p3VOz/pCtEZ52ZVUbC 28N80A59a8j+y5XD90iDjzQ6FshVPuP+EE9zoU0G+osBRSgrmwvwhKuiuIsrRAcxm+uQPp RChgqnLvFJXfmk338v1SKbl276KzdVLSy7Egu99yy/X+lUnft2jMNj3bVXP5H7JHkpYjQJ eu+vupu73sae08igU094mynTT4Dt4Rz1myLAV0NIdwWakS/v7WIzP1dBgscInw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730929943; 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=4uyC6wWzfQx02RWN8SnJzClvkrQjJuncIeiX4YkIlzg=; b=I/zY3lUwzIAjVMtbLl9u449bsljnHGD+CHKifbduAEOlojiriz8WOBHyBQszF+dl6SIyR+ Fv/MF76/wXQ5HzR7P1AoCUXvSa27OvYTSoKzVpJ2+fYBjDPIOcBEtD51PBnGctCQpbaxZU 2gXYUjyJ2BLbRBfCI7y06C3czhowwjpRj4avsVLxkyHLoFBFSz0u0aSROFW7gyPuMRhMVG jElpp476x0aK7UFbNpdha9URib09NxrVLxqj2qTxmj4+rMB954Qtq3HBQbKT0knFkZRFuM 4Ei2bwQroVdagbUPhA1RS4Iod/fSi3opjk/v7NthlTPI8TQsMxC/d9zN77VbYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730929943; a=rsa-sha256; cv=none; b=fcPi0eGYcEvlG0GDc0wN2pQODsXqpDDouQkvb+iaw0D6f86EQLqdRSW8X+QG8v0rlZbB6U Nx3v3UNRQUJMEGhXRlne7yvieJDkaY2B3BYt/FDhMleAVf/DhTGFHGMR3hk2W/FxttmoZT x7hBx1OTaaDAeIdmt/1JASuFuhxGca+IkA5HV/JuoqQhjlZEa68V7s2zfGtD1rfgPGBIYk P3BPw3jAeVb+z+6+kpQayx+ZXjodBCPxTeEsa4JyK/PUcFaeaimSSi2Mju4AYAr75dhpo0 j6Wn3FmMyCnZmDSHBmluNA0Ht21NZW7qwB3YrYrOu+T3aTtKJncxQyKqwj3pqA== 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 4XkJpH2CcczJRp; Wed, 6 Nov 2024 21:52:23 +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 4A6LqNBx082323; Wed, 6 Nov 2024 21:52:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A6LqNdl082320; Wed, 6 Nov 2024 21:52:23 GMT (envelope-from git) Date: Wed, 6 Nov 2024 21:52:23 GMT Message-Id: <202411062152.4A6LqNdl082320@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: a4c23ad43007 - releng/14.2 - 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/releng/14.2 X-Git-Reftype: branch X-Git-Commit: a4c23ad430077234207d13e7f6341aad442a67ce Auto-Submitted: auto-generated The branch releng/14.2 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=a4c23ad430077234207d13e7f6341aad442a67ce commit a4c23ad430077234207d13e7f6341aad442a67ce Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-11-06 21:51:39 +0000 bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. PR: 280562 Approved by: re (kib) MFC after: 1 month (cherry picked from commit d575077527d448ee45b923fa8c6b0cb7216ca5c5) (cherry picked from commit de45d36ffb604798c22f7ee556d774490902c1e1) --- 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\