Date: Mon, 10 Apr 2023 17:44:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 3b3762c34e2f - main - sys: Enable -Wunused-but-set-variable for GCC. Message-ID: <202304101744.33AHi3Bu073906@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304101744.33AHi3Bu073906>