aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-18 23:06:27 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-18 23:06:27 +0000
commit8b83d7e0ee54416b0ee58bd85f9c0ae7fb3357a1 (patch)
tree0bb4a12a48027dcbb7cf6ff3063dddeef5c6ae01
parent615d289ffefe2b175f80caa9b1e113c975576472 (diff)
downloadsrc-8b83d7e0ee54416b0ee58bd85f9c0ae7fb3357a1.tar.gz
src-8b83d7e0ee54416b0ee58bd85f9c0ae7fb3357a1.zip
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
-rw-r--r--sys/conf/kern.mk3
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index f97be774ea10..b86149ab4618 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -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"