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
This commit is contained in:
John Baldwin 2023-04-10 10:36:33 -07:00
parent 8e9db62e74
commit 3b3762c34e

View File

@ -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