Make -Wunused-but-set-variable a fatal error for clang 13+ for kernel builds.
Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D34949
This commit is contained in:
parent
615d289ffe
commit
8b83d7e0ee
@ -42,9 +42,6 @@ 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} >= 130000
|
||||
CWARNFLAGS+= -Wno-error=unused-but-set-variable
|
||||
.endif
|
||||
.endif # clang
|
||||
|
||||
.if ${COMPILER_TYPE} == "gcc"
|
||||
|
Loading…
x
Reference in New Issue
Block a user