Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Jan 2026 12:31:40 +0000
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: db094e82c2f7 - stable/14 - bsd.sys.mk: suppress another gcc warning for libc++
Message-ID:  <695d00ac.39e43.5c70acd2@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=db094e82c2f754251eaa1375a79175a20066e3c3

commit db094e82c2f754251eaa1375a79175a20066e3c3
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-01-02 20:29:05 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-01-06 12:30:49 +0000

    bsd.sys.mk: suppress another gcc warning for libc++
    
    Similar to base 63d1c3c43690, suppress -Wc++20-extensions for gcc.
    Otherwise libc++ headers will lead to many -Werror warnings, due to our
    use of -Wsystem-headers, which is not officially supported upstream.
    
    MFC after:      3 days
    
    (cherry picked from commit 62a7fdc13ab45b48977424ef77bbc0f11f601e39)
---
 share/mk/bsd.sys.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 1b34b70504c5..157f9a7c3158 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -240,7 +240,8 @@ CWARNFLAGS+=	-Wno-error=overflow
 .if ${COMPILER_VERSION} >= 120100
 # These warnings are raised by headers in libc++ so are disabled
 # globally for all C++
-CXXWARNFLAGS+=	-Wno-literal-suffix 			\
+CXXWARNFLAGS+=	-Wno-literal-suffix			\
+		-Wno-c++20-extensions			\
 		-Wno-error=unknown-pragmas
 .endif
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?695d00ac.39e43.5c70acd2>