git: 39a1b7009003 - stable/13 - gpio: mark more INVARIANTS variables as __diagused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Aug 2022 11:28:56 UTC
The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=39a1b7009003c2e89fc6dbf768035d92186a194d commit 39a1b7009003c2e89fc6dbf768035d92186a194d Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2022-08-14 12:12:42 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2022-08-21 11:10:49 +0000 gpio: mark more INVARIANTS variables as __diagused Mark another set of variables that are only used in INVARIANTS builds, which otherwise result in set-but-not-used warnings. Fixes: 7dc4d5118c02 MFC after: 3 days (cherry picked from commit 6e62d9a5a56c0cb8d314998e163096a454c84620) --- sys/dev/gpio/gpioc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/gpio/gpioc.c b/sys/dev/gpio/gpioc.c index 15d0848fc020..99c83b2196d8 100644 --- a/sys/dev/gpio/gpioc.c +++ b/sys/dev/gpio/gpioc.c @@ -319,7 +319,8 @@ gpioc_detach_priv_pin(struct gpioc_cdevpriv *priv, { struct gpioc_privs *priv_link, *priv_link_temp; struct gpioc_pins *pin_link, *pin_link_temp; - unsigned int consistency_a, consistency_b; + unsigned int consistency_a __diagused; + unsigned int consistency_b __diagused; consistency_a = 0; consistency_b = 0;