git: ff6ab85fc95a - stable/13 - gpio: mark INVARIANTS variables as __diagused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Aug 2022 01:05:42 UTC
The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ff6ab85fc95a18da4d87d56afd82b484652ec3f6 commit ff6ab85fc95a18da4d87d56afd82b484652ec3f6 Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2022-08-09 23:30:13 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2022-08-29 01:04:31 +0000 gpio: mark INVARIANTS variables as __diagused Fixes INVARIANTS build with Clang 15, which previously failed due to set-but-not-used variable warnings. Reviewed by: dim MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36097 (cherry picked from commit 7dc4d5118c0268efe48c0e36c49cba1e2a8e39fc) --- sys/dev/gpio/gpioc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c index 99c83b2196d8..dec69b434f7a 100644 --- a/sys/dev/gpio/gpioc.c +++ b/sys/dev/gpio/gpioc.c @@ -269,7 +269,8 @@ gpioc_attach_priv_pin(struct gpioc_cdevpriv *priv, { struct gpioc_privs *priv_link; struct gpioc_pins *pin_link; - unsigned int consistency_a, consistency_b; + unsigned int consistency_a __diagused; + unsigned int consistency_b __diagused; consistency_a = 0; consistency_b = 0; @@ -635,7 +636,7 @@ gpioc_cdevpriv_dtor(void *data) struct gpioc_cdevpriv *priv; struct gpioc_privs *priv_link, *priv_link_temp; struct gpioc_pins *pin_link, *pin_link_temp; - unsigned int consistency; + unsigned int consistency __diagused; priv = data;