From nobody Wed Jul 20 19:17:48 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 4Lp57c4Hz0z4Wl7y; Wed, 20 Jul 2022 19:17:48 +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 4Lp57c3pktz3QFr; Wed, 20 Jul 2022 19:17:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658344668; 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=SbF49HZmzUzUp63C5rPqmvv0jWJXmZo2ZZWHzByKk5U=; b=tKsfYzOv3orL0ZFrmDdibtXJRL0siAVb10+bzH+BPxJ1QGLnW1jobVs5xO4v5jqrKQsaak XzYTa5QuBXcxgrrCmgmMv9gZHVjbYLfA4avZN3ewXdeI6fwrBCd+Aj9rncDKNcebLDSV5J ooRW8eYHRvZR3u9aWalWQjKozJM7gML+gLWyYXiWbkrxYAbnTd7HvLcQQXTzvTfsjwoMFD NvFbr9UtxMTmmuKiO9CG/9RHx5RwxFMYWUxfVVfT/3Wq8Uj+QojwNIIV4jrUrD5sRgVlCM brFTYw39S86+qw5MfFt6+fXG/xb18wqljDWWXuOe8W2rD8RGdu1hbIebRj0/Og== 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 4Lp57c2t6rz18TM; Wed, 20 Jul 2022 19:17:48 +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 26KJHmLD099662; Wed, 20 Jul 2022 19:17:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26KJHmVI099661; Wed, 20 Jul 2022 19:17:48 GMT (envelope-from git) Date: Wed, 20 Jul 2022 19:17:48 GMT Message-Id: <202207201917.26KJHmVI099661@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 3c9a0112bae6 - main - Fix unused variable warning in acpica's nsaccess.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c9a0112bae6408892123b04a6ba5c6ee0780937 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658344668; 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=SbF49HZmzUzUp63C5rPqmvv0jWJXmZo2ZZWHzByKk5U=; b=KwYP4S8YEdtL/AkRbeBg2gWRJAkeVDrch7rU4auoqEDwECUB+bdIkBz7XFfUYK5z2PcxB1 7EeRn2MEWVlUoFyyOs7tsTmgEnk4Wc+Ic0557zONPBe9kkwLHS04Xed35xHPrheS6yB+YP sa0Ye812fKI3WUFjgbUj5jONwhtU+HV9zXL1w97RnxdzOr5w3Qw8KjNFSuieCLB+fEVM6w UzfO+b+BNZrfB/HYp/Wl5somOltG9MWqp//3yviKQ64//t947WMy+QRsEG/hZ1Wcej2yK/ UhDaTNvn9ei8HhNpTblDVVvu3ZFAuRRL94UCtplSekxHY05l7kCkezdlwa6okg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658344668; a=rsa-sha256; cv=none; b=tyKTBvx3YX4ScQ89pRPNDixzimfWgTL/IM27s/KkPAEnJa/4DfO0iuGrePtJTqs4KY0zSX hkzGRfvGXTIKd4ZuZR6Vv99F2rpmBbh3vks9yag8RTdtDijhE0Mf5L8KfTV0JgHb8k5U4K 54m4AilzCOuRnDEmoi+p1rO3/MGlAww6c2+oC+6lb+h8V/9z2XXZwRMNUiaHpjivp85wF2 BW5akefQcBJRaIsg+Wuw/eCzgP7Q/d+qIy05P+CzBFTu8IcEROPbkGqzU7vVO/LmP77mpc R/DqwGWVHD61taffPxE3rsEdJJflnrjKetwl1hpqbg6u5A3Q93gChpftqUKuqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=3c9a0112bae6408892123b04a6ba5c6ee0780937 commit 3c9a0112bae6408892123b04a6ba5c6ee0780937 Author: Dimitry Andric AuthorDate: 2022-07-20 19:10:43 +0000 Commit: Dimitry Andric CommitDate: 2022-07-20 19:10:43 +0000 Fix unused variable warning in acpica's nsaccess.c With clang 15, the following -Werror warning is produced: sys/contrib/dev/acpica/components/namespace/nsaccess.c:452:29: error: variable 'NumCarats' set but not used [-Werror,-Wunused-but-set-variable] UINT32 NumCarats; ^ Here, 'NumCarats' is a variable that is only used when debugging. Since acpica is contributed code, suppress the warning with a compile flag. MFC after: 3 days --- sys/conf/files | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/conf/files b/sys/conf/files index b8339ba7fda7..b934bf5124b2 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -494,7 +494,8 @@ contrib/dev/acpica/components/hardware/hwtimer.c optional acpi contrib/dev/acpica/components/hardware/hwvalid.c optional acpi contrib/dev/acpica/components/hardware/hwxface.c optional acpi contrib/dev/acpica/components/hardware/hwxfsleep.c optional acpi -contrib/dev/acpica/components/namespace/nsaccess.c optional acpi +contrib/dev/acpica/components/namespace/nsaccess.c optional acpi \ + compile-with "${NORMAL_C} ${NO_WUNUSED_BUT_SET_VARIABLE}" contrib/dev/acpica/components/namespace/nsalloc.c optional acpi contrib/dev/acpica/components/namespace/nsarguments.c optional acpi contrib/dev/acpica/components/namespace/nsconvert.c optional acpi