git: d036adc4e913 - main - bsd.sys.mk: Re-enable -Wunused-but-set-variable for clang 13+.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 28 Jun 2023 19:27:55 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d036adc4e913701fea4d0df454bf535de27ed1de commit d036adc4e913701fea4d0df454bf535de27ed1de Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-06-28 19:27:43 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-06-28 19:27:43 +0000 bsd.sys.mk: Re-enable -Wunused-but-set-variable for clang 13+. Reviewed by: dim, emaste Differential Revision: https://reviews.freebsd.org/D40674 --- share/mk/bsd.sys.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index eb6a74a3e98d..b005a8332798 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -86,9 +86,6 @@ CWARNFLAGS+= -Wdate-time .if ${WARNS} <= 6 CWARNFLAGS.clang+= -Wno-empty-body -Wno-string-plus-int CWARNFLAGS.clang+= -Wno-unused-const-variable -.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 130000 -CWARNFLAGS.clang+= -Wno-error=unused-but-set-variable -.endif .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 150000 CWARNFLAGS.clang+= -Wno-error=unused-but-set-parameter .endif