From nobody Thu Dec 09 18:00:47 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 13B1818E556F; Thu, 9 Dec 2021 18:00:48 +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 4J91zg5rjwz3R7C; Thu, 9 Dec 2021 18:00:47 +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 A92AB3323; Thu, 9 Dec 2021 18:00:47 +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 1B9I0lR5074697; Thu, 9 Dec 2021 18:00:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B9I0leF074696; Thu, 9 Dec 2021 18:00:47 GMT (envelope-from git) Date: Thu, 9 Dec 2021 18:00:47 GMT Message-Id: <202112091800.1B9I0leF074696@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: 0d81fba6805d - main - geom_mirror: plug set-but-not-unused 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: 0d81fba6805df9f24e4e108cda591e8d689f0012 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639072847; 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=6SRvRF2VGa1TNzDmjATvUp0PhyL0L8jS7IfZp7KNmzg=; b=lqrPDmwG/C8r+46356aNJQdrK8JZjoFNv6sCuBAAyq2mYWeZ/BpuPbXtTQc1qFmYQRhFVv yhAxcOKSQkmKpswivB654V4xI1wyDjLFktFNN+OjHn3J4Gm6A0pjK06c5raBq2/H2JThp1 z+/zVmF2Sj0Ge5FmrTlhkBq1BhTfVEMc+xR6DTj5P5cKw0vkgNy7OAGZKQLYtezb1LPVzl JYpSOLGdXEWHBmB783wrOsH8z/HYmAGK3Z4CuqqJ58UAGHpr3YvDUT5PRj6BCUvebC/dZT uHtO5h1ZG+pVb2WAwLe3wRkj+f2lsVAIaVyyKjvPPcFqmbPX53ugKSGWIi/Vsg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639072847; a=rsa-sha256; cv=none; b=LfjbOezLVqcub6qxIZBYEUolMLHR01o8B0QsTn3ETAzypSelrWblQkIINXa9iqe7QzWRMb sahlZrkSKNJhEj4XTKlZWftrhKKnwRXvxXuhXHi2++j+fls5R8aL9sGbMRH++U0lYMIlgo ZavWsiS31cHtaTPKqSskc4W4UA0H4MLBYl862sXvC9kTf0uvR37ajGavrRuoIhXOHapf9h 7ownkCzv/veqqIHBGDGLDxkmSuJev7gSeLlkEIl+hJa9rho+yRPhDV6aKIJG3es/oWnvNJ 92mcyUGPiv6/fbdDYlBoodd0Xs5FKTMaW3k2TkseSMHkozK0+B2ppVGH+WTF8g== 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=0d81fba6805df9f24e4e108cda591e8d689f0012 commit 0d81fba6805df9f24e4e108cda591e8d689f0012 Author: Mateusz Guzik AuthorDate: 2021-12-09 18:00:27 +0000 Commit: Mateusz Guzik CommitDate: 2021-12-09 18:00:27 +0000 geom_mirror: plug set-but-not-unused vars Sponsored by: Rubicon Communications, LLC ("Netgate") --- sys/geom/mirror/g_mirror.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index c0641d15673e..e639aec99c8c 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1605,7 +1605,7 @@ g_mirror_request_split(struct g_mirror_softc *sc, struct bio *bp) { struct bio_queue queue; struct g_mirror_disk *disk; - struct g_consumer *cp; + struct g_consumer *cp __diagused; struct bio *cbp; off_t left, mod, offset, slice; u_char *data; @@ -2083,7 +2083,7 @@ g_mirror_sync_start(struct g_mirror_disk *disk) struct g_mirror_disk_sync *sync; struct g_consumer *cp; struct bio *bp; - int error, i; + int error __diagused, i; g_topology_assert_not(); sc = disk->d_softc;