git: 0d81fba6805d - main - geom_mirror: plug set-but-not-unused vars

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Thu, 09 Dec 2021 18:00:47 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=0d81fba6805df9f24e4e108cda591e8d689f0012

commit 0d81fba6805df9f24e4e108cda591e8d689f0012
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-09 18:00:27 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
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;