bsd.sys.mk: Re-enable -Wunused-but-set-variable for clang 13+.
Reviewed by: dim, emaste Differential Revision: https://reviews.freebsd.org/D40674
This commit is contained in:
parent
ab2f6ae8d1
commit
d036adc4e9
@ -86,9 +86,6 @@ CWARNFLAGS+= -Wdate-time
|
||||
.if ${WARNS} <= 6
|
||||
CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int
|
||||
CWARNFLAGS.clang+= -Wno-unused-const-variable
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000
|
||||
CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable
|
||||
.endif
|
||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000
|
||||
CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user