Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2026 23:04:51 +0000
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Cc:        Alex Richardson <arichardson@FreeBSD.org>
Subject:   git: b50d6ddc0fb5 - stable/14 - bsd.sys.mk: also suppress clang -Wc++1[47]-extensions warnings for >= 19
Message-ID:  <6a1a1b93.431fd.4f63a3cf@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by dim:

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

commit b50d6ddc0fb58548c24f9f515a432a426f0b4e85
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2026-05-26 19:37:06 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-29 22:59:37 +0000

    bsd.sys.mk: also suppress clang -Wc++1[47]-extensions warnings for >= 19
    
    This is a direct commit to stable/14, which does not yet default to
    C++17 for most in-tree programs. In some cases, this would trigger
    -Wc++1[47]-extensions warnings with libc++ 21.
---
 share/mk/bsd.sys.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 02b99788ecb8..e2ad7bfcfb6c 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -91,6 +91,8 @@ 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
+CXXWARNFLAGS.clang+=	-Wno-c++14-extensions
+CXXWARNFLAGS.clang+=	-Wno-c++17-extensions
 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?6a1a1b93.431fd.4f63a3cf>