aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-04-10 17:36:33 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-04-10 17:36:33 +0000
commit3b3762c34e2f64671637a527fc11819ab26370fe (patch)
treebedecd6da264e2f3678180323e03abe66016005e
parent8e9db62e7423eed795291ac88622fbed018b6abd (diff)
downloadsrc-3b3762c34e2f64671637a527fc11819ab26370fe.tar.gz
src-3b3762c34e2f64671637a527fc11819ab26370fe.zip
sys: Enable -Wunused-but-set-variable for GCC.
It has been enabled for clang for a while now. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39358
-rw-r--r--sys/conf/kern.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index 9975eea6417a..8676cb525db4 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -74,8 +74,7 @@ CWARNEXTRA?= -Wno-error=address \
-Wno-error=sequence-point \
-Wno-error=shift-overflow \
-Wno-error=tautological-compare \
- -Wno-error=unused-function \
- -Wno-unused-but-set-variable
+ -Wno-error=unused-function
.if ${COMPILER_VERSION} >= 70100
CWARNEXTRA+= -Wno-error=stringop-overflow
.endif