Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2026 21:23:00 +0000
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 004b5935a6e6 - main - bsd.sys.mk: suppress some clang warnings for C++ for >= 19
Message-ID:  <6a160f34.24112.675a05e0@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=004b5935a6e643033526cab623c6005b69ab11aa

commit 004b5935a6e643033526cab623c6005b69ab11aa
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2026-05-26 19:37:06 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2026-05-26 19:37:06 +0000

    bsd.sys.mk: suppress some clang warnings for C++ for >= 19
    
    I just tried building with system clang on one of my Linux systems which
    happens to be version 19, and these warning suppressions are needed for
    that version too: same errors as in the original commit.
    
    Reviewed by:    imp
    MFC after:      1 week
    Differential Revision: https://reviews.freebsd.org/D56874
---
 share/mk/bsd.sys.mk | 2 --
 1 file changed, 2 deletions(-)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 93e7c8572310..4ffac401eb4c 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -92,8 +92,6 @@ CWARNFLAGS.clang+=	-Wno-error=unused-but-set-parameter
 .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
-.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


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a160f34.24112.675a05e0>