git: 51221b68fb55 - main - tuntap: clean up cc --analyze
Kyle Evans
kevans at FreeBSD.org
Thu Jul 22 00:15:02 UTC 2021
The branch main has been updated by kevans:
URL: https://cgit.FreeBSD.org/src/commit/?id=51221b68fb5578be90b266fbb53d2848acaee045
commit 51221b68fb5578be90b266fbb53d2848acaee045
Author: Kyle Evans <kevans at FreeBSD.org>
AuthorDate: 2021-07-22 00:13:48 +0000
Commit: Kyle Evans <kevans at 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));
More information about the dev-commits-src-all
mailing list