git: e735fa321224 - main - net/if.c: plug set-but-not-unused vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Dec 2021 20:40:12 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=e735fa321224bb81fbd51907638293c22be40b8e
commit e735fa321224bb81fbd51907638293c22be40b8e
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-09 20:39:40 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-09 20:39:40 +0000
net/if.c: plug set-but-not-unused vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/net/if.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sys/net/if.c b/sys/net/if.c
index 6543cee5ef5a..84436c0074c8 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -517,7 +517,8 @@ vnet_if_return(const void *unused __unused)
{
struct ifnet *ifp, *nifp;
struct ifnet **pending;
- int found, i;
+ int found __diagused;
+ int i;
i = 0;
@@ -1337,7 +1338,7 @@ if_vmove_loan(struct thread *td, struct ifnet *ifp, char *ifname, int jid)
struct prison *pr;
struct ifnet *difp;
int error;
- bool found;
+ bool found __diagused;
bool shutdown;
/* Try to find the prison within our visibility. */
@@ -1394,7 +1395,7 @@ if_vmove_reclaim(struct thread *td, char *ifname, int jid)
struct prison *pr;
struct vnet *vnet_dst;
struct ifnet *ifp;
- int error, found;
+ int error, found __diagused;
bool shutdown;
/* Try to find the prison within our visibility. */