git: 3c39566d659c - main - mbuf: plug set-but-not-used vars
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 14 Dec 2021 14:54:27 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=3c39566d659cad5d370465cc1619f139124280eb
commit 3c39566d659cad5d370465cc1619f139124280eb
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-14 14:54:02 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-14 14:54:02 +0000
mbuf: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/kern/uipc_mbuf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index e0cb45a8d384..1e62de4aef7f 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -625,7 +625,7 @@ m_copyfromunmapped(const struct mbuf *m, int off, int len, caddr_t cp)
{
struct iovec iov;
struct uio uio;
- int error;
+ int error __diagused;
KASSERT(off >= 0, ("m_copyfromunmapped: negative off %d", off));
KASSERT(len >= 0, ("m_copyfromunmapped: negative len %d", len));
@@ -1155,7 +1155,7 @@ m_copytounmapped(const struct mbuf *m, int off, int len, c_caddr_t cp)
{
struct iovec iov;
struct uio uio;
- int error;
+ int error __diagused;
KASSERT(off >= 0, ("m_copytounmapped: negative off %d", off));
KASSERT(len >= 0, ("m_copytounmapped: negative len %d", len));