Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Aug 2022 13:07:09 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: 324c4c32809b - stable/12 - acpi: mark INVARIANTS variables as __diagused
Message-ID:  <202208291307.27TD79Zv014788@gitrepo.freebsd.org>

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

URL: https://cgit.FreeBSD.org/src/commit/?id=324c4c32809bb1239987203d3b1914015ba19d4c

commit 324c4c32809bb1239987203d3b1914015ba19d4c
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-08-10 00:39:28 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-08-29 13:06:03 +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)
    (cherry picked from commit 9f45a241fc0db78ec62fd8ac3e19bc80694523f9)
---
 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 f5378e6ca3cf..79802e7716b2 100644
--- a/sys/dev/acpica/acpi_pci_link.c
+++ b/sys/dev/acpica/acpi_pci_link.c
@@ -716,7 +716,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?202208291307.27TD79Zv014788>