git: 6e62d9a5a56c - main - gpio: mark more INVARIANTS variables as __diagused

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Sun, 14 Aug 2022 12:12:59 UTC
The branch main has been updated by dim:

URL: https://cgit.FreeBSD.org/src/commit/?id=6e62d9a5a56c0cb8d314998e163096a454c84620

commit 6e62d9a5a56c0cb8d314998e163096a454c84620
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2022-08-14 12:12:42 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2022-08-14 12:12:42 +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
---
 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 4c6270f80cb9..0d89107daf91 100644
--- a/sys/dev/gpio/gpioc.c
+++ b/sys/dev/gpio/gpioc.c
@@ -320,7 +320,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;