From nobody Fri Jan 2 20:52:09 2026 X-Original-To: dev-commits-src-branches@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 4djbV20jQFz6MF97 for ; Fri, 02 Jan 2026 20:52: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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4djbV141prz3qQr for ; Fri, 02 Jan 2026 20:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387129; 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=Q/XOdp3Vq5L4cKuxH7iz16sPpt6LG5v3Ckcpv1ZZFZw=; b=tAeJ/BiIn+++tSEwNcxcI1guhXgCmdBBjGshXhSrXZyx8gFehC811QrxLferuCmHXiycE1 soekoS0Ovv0FEDS1JzpWomc5f1PmvbAuOGS1GVmLb1w74gM30/P8oKbGPFLExF1fq6LDeY FcyxbJsjs7t97n7CXYySnncEENqy1hkyp04MgoVzPWj8bMXpIwl1e92a9kqL2kIK0yfSo4 IfP0Sn8ouvF4Ydhj70iaHsSOB7o3FiWq0QDx0XSuZuwRbIFKK00T4LChfkt9fhCvC/Rdo3 uq+eKF/S49AA4lMZBXkSnwWaPh+CN724x2RucHoVhq4RqArylIuUDhtK2WDwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1767387129; 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=Q/XOdp3Vq5L4cKuxH7iz16sPpt6LG5v3Ckcpv1ZZFZw=; b=AF/ITbOhxrHFszKsP1n1oeI5J1oIiLBwClgUFBKWOVqrw9Z1c6yrRaO+i+SLwOOkelGNYI eFdUE/XwLlN1mw5dlHWz4ojYta3FHyC6jwSxOZ6MS1OzOlYASYMSm6qXmWndBCZt0UW8J5 NUffVgZn/2qLy7l/TKRKRyHU5dWS8dU+tEDWonoElG7GOqWcDi6U+2YovohI7mov6H6XE8 BfmgbEnQlgRrnjZ44/YeQHOy/MTgVCQCspybxjSW0xoPsQEBFineBcliobF/qt5jRQ2Ez4 jYlm4OIMJ6HGW3uRNj2KSigpsohckXYxNM2KBsTye6UI1azGNzzemvPKIP5Izg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1767387129; a=rsa-sha256; cv=none; b=Tc+yGhD0uSudjAGzVRgjehcGerKfudAozWOV3rUM8xPze9OcNLvJQbETygXVyjpUAFsRtv d/09mnisQu/vWZ1TrVHuNKjOBLsuMKjAv1h00RuZQUyAPGMb8kPmSgOhKURkOQRUkJej14 rScBcPiA/Ih1Q71hBNuGm4bU0CduwulayagON5xfuE3kEEm4jWi9gN7zXI+yrzFjnWwo6t du+Ky2FuC+mMxOn/M/N8Qp9+9s02uEjv738pxuqUFPSXMkA3Wn4vJg85ECSDPwfAB9URnV edrDUxyW0Ej+TRznmzMomFgddAZVPVIQbiKs4WHrluSOYC2RmMNe/rN7qnC1/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4djbV13QkNzb36 for ; Fri, 02 Jan 2026 20:52:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id b79a by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 02 Jan 2026 20:52:09 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: c645b2f41833 - stable/14 - bsd.sys.mk: suppress some new clang 21 warnings for C++ List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: c645b2f41833063795f470e393c2b0f0961b1134 Auto-Submitted: auto-generated Date: Fri, 02 Jan 2026 20:52:09 +0000 Message-Id: <69582ff9.b79a.c951a58@gitrepo.freebsd.org> The branch stable/14 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c645b2f41833063795f470e393c2b0f0961b1134 commit c645b2f41833063795f470e393c2b0f0961b1134 Author: Dimitry Andric AuthorDate: 2025-12-25 18:44:34 +0000 Commit: Dimitry Andric CommitDate: 2026-01-02 20:44:34 +0000 bsd.sys.mk: suppress some new clang 21 warnings for C++ Otherwise, these lead to many -Werror warnings in libc++ headers, due to our use of -Wsystem-headers, which is not officially supported upstream: Suppress -Wc++20-extensions, due to: /usr/include/c++/v1/__algorithm/simd_utils.h:96:50: error: explicit template parameter list for lambdas is a C++20 extension [-Werror,-Wc++20-extensions] 96 | inline constexpr size_t __simd_vector_size_v = []() -> size_t { | ^ Suppress -Wc++23-lambda-attributes, due to: /usr/include/c++/v1/__format/format_functions.h:462:32: error: an attribute specifier sequence in this position is a C++23 extension [-Werror,-Wc++23-lambda-attributes] 462 | if (bool __is_identity = [&] [[__gnu__::__pure__]] // Make sure the compiler knows this call can be eliminated | ^ Suppress -Wnullability-completeness, due to: /usr/include/c++/v1/string:1068:80: error: pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Werror,-Wnullability-completeness] 1068 | _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 basic_string(const _CharT* __s, size_type __n) { | ^ MFC after: 3 days (cherry picked from commit 63d1c3c43690ff3c3e76e1fb03c8640fe30a2663) --- share/mk/bsd.sys.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 061c6b36f84d..1b34b70504c5 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -92,6 +92,11 @@ CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter # Similar to gcc >= 8.1 -Wno-error=cast-function-type below CWARNFLAGS.clang+= -Wno-error=cast-function-type-mismatch .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 210000 +CXXWARNFLAGS.clang+= -Wno-c++20-extensions +CXXWARNFLAGS.clang+= -Wno-c++23-lambda-attributes +CXXWARNFLAGS.clang+= -Wno-nullability-completeness +.endif .endif # WARNS <= 6 .if ${WARNS} <= 3 CWARNFLAGS.clang+= -Wno-tautological-compare -Wno-unused-value\