Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2022 23:11:52 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: 8b83d7e0ee54 - main - Make -Wunused-but-set-variable a fatal error for clang 13+ for kernel builds.
Message-ID:  <202204182311.23INBqfC025671@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=8b83d7e0ee54416b0ee58bd85f9c0ae7fb3357a1

commit 8b83d7e0ee54416b0ee58bd85f9c0ae7fb3357a1
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-18 23:06:27 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-18 23:06:27 +0000

    Make -Wunused-but-set-variable a fatal error for clang 13+ for kernel builds.
    
    Reviewed by:    imp, emaste
    Differential Revision:  https://reviews.freebsd.org/D34949
---
 sys/conf/kern.mk | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
index f97be774ea10..b86149ab4618 100644
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -42,9 +42,6 @@ CWARNEXTRA?=	-Wno-error=tautological-compare -Wno-error=empty-body \
 		-Wno-error=pointer-sign
 CWARNEXTRA+=	-Wno-error=shift-negative-value
 CWARNEXTRA+=	-Wno-address-of-packed-member
-.if ${COMPILER_VERSION} >= 130000
-CWARNFLAGS+=	-Wno-error=unused-but-set-variable
-.endif
 .endif	# clang
 
 .if ${COMPILER_TYPE} == "gcc"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204182311.23INBqfC025671>