From nobody Wed Oct 23 18:30:28 2024 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 4XYczn1VGYz5ZWwd; Wed, 23 Oct 2024 18:30:29 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XYczn052rz59K3; Wed, 23 Oct 2024 18:30:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729708229; 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=swZeJI+4VHNaofQsEUkVL5GT8mfxheIuO8W6CWsyR0Y=; b=l//QQMkfSt02ZtHnkCq2xoFizhPzmN+O0xSkcSOwwmCrUWLdDnFNCqFq8jbGYJxgafLweZ FaieI/WpXGm+W1Mb7Ck8xxdztbzc5iJQXPp+gzbmtkhIwfxiQphzg7n4sgFtgUPO/M+0QW Pk3uLWKQ5Epa6bOMHczVDhDGsITlX22urffRFX9guQU3hNORe46ANrdH+VxxB+iMZ7YwvF 33sNKvincqfB6OO+TfxA8ydhTsl7cdwcpY9ii81QXZVpz/EKipyvQjTF+IogI26V8Aw+Qg KwcabAcZJnVLlxtAk3+25nC761D3kggQmlCaskQjX0N3hxT3pshuPg5N0011RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1729708229; 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=swZeJI+4VHNaofQsEUkVL5GT8mfxheIuO8W6CWsyR0Y=; b=d4JcUPDXHxrZA1hrQIZh9H/9kKeampkTi7qHqZsxQDsc0h0N9/ikb4ZCaMinX4knnUvzQ7 bjq/y07tVbdAL0YERHFcU+Z6DH7t1NHDN4bRdrX17X4nQx4QRNfO8p6KlyWSWxI71pAs6u nm9TOiDQkByEA7BV/aI0AHr52YHQir0jnMSC3J0nSUpMBDhnnvEJZ/LgfskIHI/FR3IyQ1 +XgpT4OZL55Gk3N0wKeNum9o77/XiW7BmHct3nX/YWnRof6uDr+kfgxV6OLTfPlwHS4vbf wfU0xuaeqE6g73iRXby3drTkIcGBVFllkwEo8KPTILCgQ9C/hSRZSEsdfv9zMg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729708229; a=rsa-sha256; cv=none; b=gCRQxmct+Ng5ToHbvzH2XvqPF9JITRn/qT4ieL+3S2rSxWwb3XvnDa36Pkgp3A4YMlPTvy Gm//vx3OCyuJvHYhhaBgHPOLnkDq2f7Hfbj+ArMBeqal+kYnIhs8+LhrSksx14ioCjdbCM dMcNOLbxO5W5AzhGyYll+kmGWnxP2TNxYTvYwZBE2WaoBkbJkTfaLBHuu+oOjVW/4skGXf +TU6NqVEI3mT/AEQNS0vwgwwbOifMQFqp5wxVJTbP/LJ1TrHs83Sq9helt0Sffi0cixU9X sG7Elfq6+LEeW/a9bJJU8niJCGHbzGNoY0jj6/N40WHjGLLzwJUQzHH8zD6COQ== 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 4XYczm5sS1z18RS; Wed, 23 Oct 2024 18:30:28 +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 49NIUSLt068879; Wed, 23 Oct 2024 18:30:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49NIUSkY068876; Wed, 23 Oct 2024 18:30:28 GMT (envelope-from git) Date: Wed, 23 Oct 2024 18:30:28 GMT Message-Id: <202410231830.49NIUSkY068876@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: d575077527d4 - main - bsd.sys.mk: for clang >= 19, similar to gcc >= 8.1, turn off -Werror for -Wcast-function-type-mismatch. 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: d575077527d448ee45b923fa8c6b0cb7216ca5c5 Auto-Submitted: auto-generated The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=d575077527d448ee45b923fa8c6b0cb7216ca5c5 commit d575077527d448ee45b923fa8c6b0cb7216ca5c5 Author: Dimitry Andric AuthorDate: 2024-07-30 18:28:51 +0000 Commit: Dimitry Andric CommitDate: 2024-10-23 18:26:34 +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 --- 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 52c3d07746c7..1934a79a5427 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\