From nobody Mon Apr 18 23:11:51 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E973811C87E0; Mon, 18 Apr 2022 23:11:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kj2kb5wwJz3pN5; Mon, 18 Apr 2022 23:11:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650323511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oUEwxVinGeh7qdkS41MwJc2Jp+oq22Vzkdw+pYon1fk=; b=jTj/d6J+YYwh5V54AbCHPNIyuSDUQhuSvDCtUxSax7WUBhkhHixrVeMaOOSnWx40IKMv47 7IeuYh0cjhJjvcR0IHGmUS308bnuAOuEK64rwnNshLcMFg+YLh7YFL8XxqB0ScOj2/+/zR HiBTKqT72UxutmIfJdB+kWPlOdkXcXFNyhLAIgskqOiku40jYFDkbJJ6AUjUSvmyMH6WHB r6GRaw4soLX4EYHqPS/OLMG9JLA/2flpO3eDqzCcvT4aBba9M8vUnVeUdWyS61iDiAXfHV a+K3pWAYT0TXHPM8wlhwpn0cSPJ/h4GRvA90vFirv/q/4DN0g51fZTNcXT3pLQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id ABE5C1C0A7; Mon, 18 Apr 2022 23:11:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23INBp0g025648; Mon, 18 Apr 2022 23:11:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23INBpcw025647; Mon, 18 Apr 2022 23:11:51 GMT (envelope-from git) Date: Mon, 18 Apr 2022 23:11:51 GMT Message-Id: <202204182311.23INBpcw025647@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 615d289ffefe - main - Re-enable set but not used warnings for kernel builds. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 615d289ffefe2b175f80caa9b1e113c975576472 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650323511; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oUEwxVinGeh7qdkS41MwJc2Jp+oq22Vzkdw+pYon1fk=; b=o6UuT63axK5Bgw1ELgFcPTL5xXXkKkhAyWC5Q2LI7XqrWdNRz3tbK5xtf30M8bSIdoXIdK uhomC75kN1Nd839mes7GuuJggjgil5shyzLLv28ydfkQDzIMo3k7J1wfUeaAioaAIzKKCR 7ZqHmXyhadkbnjydMR0TVLbSv6fmUhpuXXcIGf84nfNMkijGmLRNYF1ny/KH3OwzMRI0XL GSEbRhH/VsRaun1ZexLTPv/TQajLH9LrTC92EuNeMK/ciO2Kyq4b+nSqzFvQRSHWg359sV eg3zZF4sOcG8lD1W4TK4oKWy+fyuY9AAJwNZOZwK/Md49KSQMpcJiIk26F+Gjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650323511; a=rsa-sha256; cv=none; b=Fzq2NMompzddXQUFR4odTqb5BhE5BZ/ka60P31rYRaJ9dNgP6N6rCkNicoHMCSqL6lSRx0 3R4wOvkaEphiDCYakAGUYbA3qfASpBl2JDNfKYGkjya4BquAki00j/Y4Zn4WmWAoV04vkU nutBKjUuV9psVqhVyVM2ErgSKsd1sWMvGZDPd2DUp7HBsA6g9SdLClkombrufF+OKHz3qw jLCdAmA5vm881vsM6G9BudHBdk3Dr67lr8t4yWGSuyqE3k4Q69BsJ3FyQehdMYRQOqAlmF G91ReYaH+XM9pUZkhPOq0aK8y8V2DQbK+D2Uj8asol0/tl9sOUoqEfyufsU+jg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=615d289ffefe2b175f80caa9b1e113c975576472 commit 615d289ffefe2b175f80caa9b1e113c975576472 Author: John Baldwin AuthorDate: 2022-04-18 23:06:14 +0000 Commit: John Baldwin CommitDate: 2022-04-18 23:06:14 +0000 Re-enable set but not used warnings for kernel builds. make tinderbox now passes with this warning enabled as a fatal error, so revert the change to hide it in preparation for making it fatal. This reverts commit e8e691983bb75e80153b802f47733f1531615fa2. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D34948 --- sys/conf/kern.mk | 6 +----- sys/conf/kern.opts.mk | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index 67756b7fb986..f97be774ea10 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -43,11 +43,7 @@ CWARNEXTRA?= -Wno-error=tautological-compare -Wno-error=empty-body \ CWARNEXTRA+= -Wno-error=shift-negative-value CWARNEXTRA+= -Wno-address-of-packed-member .if ${COMPILER_VERSION} >= 130000 -.if ${MK_SET_BUT_NOTUSED_KERNEL_WARNINGS} == "no" -CWARNEXTRA+= ${NO_WUNUSED_BUT_SET_VARIABLE} -.else -CWARNEXTRA+= -Wno-error=unused-but-set-variable -.endif +CWARNFLAGS+= -Wno-error=unused-but-set-variable .endif .endif # clang diff --git a/sys/conf/kern.opts.mk b/sys/conf/kern.opts.mk index 19789180ee93..077009baebf0 100644 --- a/sys/conf/kern.opts.mk +++ b/sys/conf/kern.opts.mk @@ -60,8 +60,7 @@ __DEFAULT_NO_OPTIONS = \ INIT_ALL_ZERO \ KERNEL_RETPOLINE \ RATELIMIT \ - REPRODUCIBLE_BUILD \ - SET_BUT_NOTUSED_KERNEL_WARNINGS + REPRODUCIBLE_BUILD # Some options are totally broken on some architectures. We disable # them. If you need to enable them on an experimental basis, you