Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Aug 2022 11:29:30 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: bc78b4fd17cc - stable/12 - gpio: mark more INVARIANTS variables as __diagused
Message-ID:  <202208211129.27LBTUnS004980@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by dim:

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

commit bc78b4fd17cc329ee23e91e27cd2dd4ac8fec41d
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:18:10 +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 878f761e6dbc..736012616971 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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208211129.27LBTUnS004980>