From nobody Tue Dec 14 14:54:27 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1238618F4E59; Tue, 14 Dec 2021 14:54:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JD1cM4W4Vz3CqZ; Tue, 14 Dec 2021 14:54:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 737002401; Tue, 14 Dec 2021 14:54:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BEEsRBk047824; Tue, 14 Dec 2021 14:54:27 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BEEsRXw047823; Tue, 14 Dec 2021 14:54:27 GMT (envelope-from git) Date: Tue, 14 Dec 2021 14:54:27 GMT Message-Id: <202112141454.1BEEsRXw047823@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: 3c39566d659c - main - mbuf: plug set-but-not-used vars List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c39566d659cad5d370465cc1619f139124280eb Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639493667; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=laXLbr7+WMEfYmI2EE6aBgtwPNEBAj2g6LynL0r0shk=; b=AlDMv5sO6fgy02xkEwujXNV7ifQgWYgRP3dfdaXFIkmriWrlhVwyBbxKdhxswX8kIdm4mT xHLQlevLCUMcYbVi5+7WkKfuI5AzdrR0kE/q9ES7AkIRiwppuiiyzszIxij43V2aQu615W jFBrk/C05A7Al6Pp/NrtqAxO37ePfZMY1Ss09u+GovMNuRVAWq8P+hRpZS6pKuXQKDDAXY oB08LgOdDAh2ijIlMtTurVUb4YDV3pcz7gowLVloxdbKzsq5UO/+il3LRno3REWgKX5K82 AkGkrzc8P5nDYqlexOugU7V2nAbMbhGjcNAm1GO37xp4uE2s+qaQn6duFzOxaw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639493667; a=rsa-sha256; cv=none; b=tEV4VF6ZifmWAfaaE4rZk0lHkL8MrmT19uP1+AInTeVFTpDcYCB7gpThbap/T/QcH2hRJE DbCgVQI+Wppo6liY+y1c30xK/M9mxXf5F7FWGbGuHaYTEWDsmoyrNJJgRpSdTSFt+CLonB HVW8K8ZrExbW+gVuKf43ELngfsRv9uY6/+VTVqw6SuHGGUvDcXjd+PpyHfvWn2/UiMsh/O fE3tnL3CM3uGlcrm/65XChJ/pTcGXU8UHFxpff515hjUbXoeqJet+8bbD8m2/mC035D79Y IbYZn0faEfQd8EXdmRYtlJFZGhlXYCJSDCr9A3Xmdz55hvYitLVkY2HlOnbs5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=3c39566d659cad5d370465cc1619f139124280eb commit 3c39566d659cad5d370465cc1619f139124280eb Author: Mateusz Guzik AuthorDate: 2021-12-14 14:54:02 +0000 Commit: Mateusz Guzik 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));