Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jul 2021 00:15:01 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 51221b68fb55 - main - tuntap: clean up cc --analyze
Message-ID:  <202107220015.16M0F1nW026898@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

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

commit 51221b68fb5578be90b266fbb53d2848acaee045
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-07-22 00:13:48 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-07-22 00:14:43 +0000

    tuntap: clean up cc --analyze
    
    One complaint of a dead-store, smack it with a __diagused.
---
 sys/net/if_tuntap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/if_tuntap.c b/sys/net/if_tuntap.c
index 0c0a0dd66339..b4b1b77ddc7c 100644
--- a/sys/net/if_tuntap.c
+++ b/sys/net/if_tuntap.c
@@ -1042,7 +1042,7 @@ tunopen(struct cdev *dev, int flag, int mode, struct thread *td)
 {
 	struct ifnet	*ifp;
 	struct tuntap_softc *tp;
-	int error, tunflags;
+	int error __diagused, tunflags;
 
 	tunflags = 0;
 	CURVNET_SET(TD_TO_VNET(td));



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