git: 3b3762c34e2f - main - sys: Enable -Wunused-but-set-variable for GCC.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Apr 2023 17:44:03 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b3762c34e2f64671637a527fc11819ab26370fe
commit 3b3762c34e2f64671637a527fc11819ab26370fe
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-10 17:36:33 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-10 17:36:33 +0000
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