Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2022 01:05:41 GMT
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9f45a241fc0d - stable/13 - acpi: mark INVARIANTS variables as __diagused
Message-ID:  <202208290105.27T15fko019468@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f45a241fc0db78ec62fd8ac3e19bc80694523f9

commit 9f45a241fc0db78ec62fd8ac3e19bc80694523f9
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-08-10 00:39:28 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-08-29 01:04:19 +0000

    acpi: mark INVARIANTS variables as __diagused
    
    Fixes INVARIANTS build with Clang 15, which previously failed due to
    set-but-not-used variable warnings.
    
    Reviewed by:    jhb
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D36096
    
    (cherry picked from commit 0fd8d3589a68838d62d47f240d7fb22ef0d4dbeb)
---
 sys/dev/acpica/acpi_pci_link.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/dev/acpica/acpi_pci_link.c b/sys/dev/acpica/acpi_pci_link.c
index 3dab2807bd92..441b52ea1cb0 100644
--- a/sys/dev/acpica/acpi_pci_link.c
+++ b/sys/dev/acpica/acpi_pci_link.c
@@ -719,7 +719,7 @@ acpi_pci_link_srs_from_crs(struct acpi_pci_link_softc *sc, ACPI_BUFFER *srsbuf)
 	ACPI_RESOURCE *end, *res;
 	ACPI_STATUS status;
 	struct link *link;
-	int i, in_dpf;
+	int i __diagused, in_dpf;
 
 	/* Fetch the _CRS. */
 	ACPI_SERIAL_ASSERT(pci_link);
@@ -861,7 +861,7 @@ acpi_pci_link_route_irqs(device_t dev)
 	ACPI_BUFFER srsbuf;
 	ACPI_STATUS status;
 	struct link *link;
-	int i;
+	int i __diagused;
 
 	ACPI_SERIAL_ASSERT(pci_link);
 	sc = device_get_softc(dev);



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