The branch main has been updated by dim:

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

commit d577b4ed588c0f259d7298188233b17dc0435dd4
Author:     Dimitry Andric <[email protected]>
AuthorDate: 2026-09-17 19:35:22 +0000
Commit:     Dimitry Andric <[email protected]>
CommitDate: 2026-09-17 19:36:46 +0000

    bsd.sys.mk: make clang 23 -Wunused-but-set-global non-fatal
    
    This warning triggers in a few places in contributed code, and would
    therefore be annoying to fix. Use -Wno-error= to at least show the
    warnings so there is some incentive to submit them upstream.
    
    MFC after:      3 days
---
 share/mk/bsd.sys.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 139cb8bec843..744f72267b2b 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -96,6 +96,9 @@ CXXWARNFLAGS.clang+=  -Wno-c++20-extensions
 CXXWARNFLAGS.clang+=   -Wno-c++23-lambda-attributes
 CXXWARNFLAGS.clang+=   -Wno-nullability-completeness
 .endif
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 230000
+CWARNFLAGS.clang+=     -Wno-error=unused-but-set-global
+.endif
 .endif # WARNS <= 6
 .if ${WARNS} <= 3
 CWARNFLAGS.clang+=     -Wno-tautological-compare -Wno-unused-value\

Reply via email to