git: 1c5f188212d0 - main - usb: Use __diagused for variables only used in KASSERT().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Apr 2022 23:09:26 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=1c5f188212d0e709c4c062d2a3b616a06408ced5 commit 1c5f188212d0e709c4c062d2a3b616a06408ced5 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-13 23:08:20 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-13 23:08:20 +0000 usb: Use __diagused for variables only used in KASSERT(). --- sys/dev/usb/misc/cp2112.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/usb/misc/cp2112.c b/sys/dev/usb/misc/cp2112.c index 51b96e544626..edc5a2499660 100644 --- a/sys/dev/usb/misc/cp2112.c +++ b/sys/dev/usb/misc/cp2112.c @@ -374,7 +374,7 @@ static int cp2112_gpio_read_pin(device_t dev, uint32_t pin_num, bool *on) { struct gpio_get_req data; - struct cp2112gpio_softc *sc; + struct cp2112gpio_softc *sc __diagused; int err; sc = device_get_softc(dev); @@ -393,7 +393,7 @@ static int cp2112_gpio_write_pin(device_t dev, uint32_t pin_num, bool on) { struct gpio_set_req data; - struct cp2112gpio_softc *sc; + struct cp2112gpio_softc *sc __diagused; int err; bool actual; @@ -419,7 +419,7 @@ cp2112_gpio_configure_write_pin(device_t dev, uint32_t pin_num, bool output, enum cp2112_out_mode *mode) { struct gpio_config_req data; - struct cp2112gpio_softc *sc; + struct cp2112gpio_softc *sc __diagused; int err; uint8_t mask;