From nobody Mon Mar 14 21:06:00 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 5C6EB1A0BD0C; Mon, 14 Mar 2022 21:06:01 +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 4KHTbY17Wfz3Q2K; Mon, 14 Mar 2022 21:06:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647291961; 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=5NmlyVE44JtBuGPuiFbPD5uul83pfDfaFgUuhT/D0r0=; b=rjwtbtdh7lUNP7vSVfaIPgYLAlMrjbnxag5IF2aLB8DI8/xGm1ni7gV68KyFT7Y8YnBGWk mW3Gjh9Lt6wNMv2s+DYaZbK/1EDxb1Y3m/LzHtUHxqHRXkpUTmVLWkI3RkSjsphpAdVcTM TPhE73PFcTJ4rKgONEl4bw7CV+nKADfssHsIGonxxyaWnZjNXjrkM9WwdSTRkrwHKvWVVX 2ryNidWVe3UXp2Yd8isfCMHBqjf6474rV9WdveJKS2qX36SP43ju4edG0qgbOhiI5ACOT3 Re+G7OGLgujwBnnv+XX+k9Dr3Bo6pXBmOYLk9EXAgvM56PQvYSPMc4JMmUOtbQ== 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 F1BCF14C43; Mon, 14 Mar 2022 21:06:00 +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 22EL60Iv064258; Mon, 14 Mar 2022 21:06:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22EL60rH064257; Mon, 14 Mar 2022 21:06:00 GMT (envelope-from git) Date: Mon, 14 Mar 2022 21:06:00 GMT Message-Id: <202203142106.22EL60rH064257@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: 2814ba8ef17a - main - Move NO_WUNUSED_BUT_SET_VARIABLE clang helper to the right place. 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: 2814ba8ef17aa647fa52092106731bcf76a2392d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1647291961; 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=5NmlyVE44JtBuGPuiFbPD5uul83pfDfaFgUuhT/D0r0=; b=vj3TNcQovbwIAxZBz4toe/7ecqcYk5D6eWgKCTg19+SCcbKPDv6LYEJDJ+WSWLb7riNndl iJfVTfaqa9UJBe+Caaq0a/ETzp+ouMCKnrwo0nhLraDdi59sKV6EoMZkHXarAb+3QJTcZa 1FZzGeNhUdU01dqNAjF+ezIlDV1ZRV1h/Iamn5osNVrgKxt4BrMLjztxc9E+d/mRQS0VX6 8kFgOPudqK1tne778j9tblxWIDE8lzIbaHITZGRbWwoW4Sh/n372nVmhV11HzQcKn1Px11 YUgJ7VOvoNOHg6KEFqMkZE3i3vZhl2gDkVr85VEr0uG7fLPN2HDqkHbhicm1ww== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1647291961; a=rsa-sha256; cv=none; b=u6hEy1CBJzrVy2LM2kEezXF1zxuLX1uwKGsi9G0RX2dub/f5d8+Qzs+juv7AX2mzIwBup3 aS8Qo8zNIPpSIZk3hTXNX5OkZtu/ikM/R65dCdtx6H/yx/XxxzOqRLXAEXTNe3W8roj4NR h5We83a3fJfl7Dlzvxb4zMe6ovVmYTV0/2R3MIh2N9K8kfchVkMO1lt7pHM9aUFfA55ltY cWCqbdcnLVTV3/VwUgsVegNPwOL7psgT48AhSJ/9ZIB1u+1nEuosOg9v/ZmXYZiebnTHIH puuWznZQ+KatSNGNhKEyTDnVvp209DPSdnoAPIqoRF5EJoNRSkfWuU5d+ljFWA== 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=2814ba8ef17aa647fa52092106731bcf76a2392d commit 2814ba8ef17aa647fa52092106731bcf76a2392d Author: John Baldwin AuthorDate: 2022-03-14 21:05:25 +0000 Commit: John Baldwin CommitDate: 2022-03-14 21:05:25 +0000 Move NO_WUNUSED_BUT_SET_VARIABLE clang helper to the right place. Reviewed by: imp, dim, emaste Sponsored by: University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D34537 --- sys/conf/kern.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index c1228ed1bc6f..f97be774ea10 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -28,6 +28,9 @@ NO_WTAUTOLOGICAL_POINTER_COMPARE= -Wno-tautological-pointer-compare .if ${COMPILER_VERSION} >= 100000 NO_WMISLEADING_INDENTATION= -Wno-misleading-indentation .endif +.if ${COMPILER_VERSION} >= 130000 +NO_WUNUSED_BUT_SET_VARIABLE= -Wno-unused-but-set-variable +.endif .if ${COMPILER_VERSION} >= 140000 NO_WBITWISE_INSTEAD_OF_LOGICAL= -Wno-bitwise-instead-of-logical .endif @@ -90,10 +93,6 @@ CWARNFLAGS+= -Wno-format-zero-length FORMAT_EXTENSIONS= -Wno-format .elif ${COMPILER_TYPE} == "clang" FORMAT_EXTENSIONS= -D__printf__=__freebsd_kprintf__ -# Only newer versions of clang have -Wno-unused-but-set-variable -.if ${COMPILER_VERSION} >= 130000 -NO_WUNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable -.endif .else FORMAT_EXTENSIONS= -fformat-extensions .endif