Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2026 16:06:13 +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: 7f421c7c9c1a - stable/14 - bsd.sys.mk: also suppress gcc -Wc++1[47]-extensions warnings for >= 12
Message-ID:  <6a1b0af5.4020a.35c68e88@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=7f421c7c9c1a28aadf4b3d3b10bf992570166174

commit 7f421c7c9c1a28aadf4b3d3b10bf992570166174
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2026-05-30 16:05:16 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-30 16:05:16 +0000

    bsd.sys.mk: also suppress gcc -Wc++1[47]-extensions warnings for >= 12
    
    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 gcc
    -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 e2ad7bfcfb6c..f00b7f679f4a 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -241,6 +241,8 @@ CWARNFLAGS+=	-Wno-error=overflow
 # These warnings are raised by headers in libc++ so are disabled
 # globally for all C++
 CXXWARNFLAGS+=	-Wno-literal-suffix			\
+		-Wno-c++14-extensions			\
+		-Wno-c++17-extensions			\
 		-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?6a1b0af5.4020a.35c68e88>