The branch stable/15 has been updated by dim:

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

commit ecf568607e9152f76afbe95f101a3bfb7255d661
Author:     Dimitry Andric <[email protected]>
AuthorDate: 2026-09-17 19:36:25 +0000
Commit:     Dimitry Andric <[email protected]>
CommitDate: 2026-09-20 07:02:51 +0000

    kern.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
    
    (cherry picked from commit bcd0d76d4882dd8d19a49c050411b5c58a0deb74)
---
 sys/conf/kern.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 6ae940be9a47..aa0e9149d672 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -48,6 +48,9 @@ CWARNEXTRA?=  -Wno-error=tautological-compare 
-Wno-error=empty-body \
                -Wno-error=pointer-sign
 CWARNEXTRA+=   -Wno-error=shift-negative-value
 CWARNEXTRA+=   -Wno-address-of-packed-member
+.if ${COMPILER_VERSION} >= 230000
+CWARNEXTRA+=   -Wno-error=unused-but-set-global
+.endif
 .endif # clang
 
 .if ${COMPILER_TYPE} == "gcc"

Reply via email to