git: 0fd8d3589a68 - main - acpi: mark INVARIANTS variables as __diagused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Aug 2022 21:17:45 UTC
The branch main has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=0fd8d3589a68838d62d47f240d7fb22ef0d4dbeb
commit 0fd8d3589a68838d62d47f240d7fb22ef0d4dbeb
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-08-10 00:39:28 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-08-10 21:17:33 +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
---
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 0b33772d6c6f..dfbaeaddec06 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);