From 3b3762c34e2f64671637a527fc11819ab26370fe Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Mon, 10 Apr 2023 10:36:33 -0700 Subject: [PATCH] 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 --- sys/conf/kern.mk | 3 +-- 1 file changed, 1 insertion(+), 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