Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 May 2023 21:04:23 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 96b119340eec - main - stand: remove ZFS warning about computered but unused variable
Message-ID:  <202305012104.341L4NtL051969@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=96b119340eec331bdbbbdea606dae64cd2dce774

commit 96b119340eec331bdbbbdea606dae64cd2dce774
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2023-05-01 15:45:41 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-05-01 21:02:54 +0000

    stand: remove ZFS warning about computered but unused variable
    
    Toss a __unused on the unexpected_errors variable. We compute it, but
    never use it.
    
    Sponsored by:           Netflix
---
 sys/cddl/boot/zfs/zfssubr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/cddl/boot/zfs/zfssubr.c b/sys/cddl/boot/zfs/zfssubr.c
index 1dcb0829680c..13edcc8ee747 100644
--- a/sys/cddl/boot/zfs/zfssubr.c
+++ b/sys/cddl/boot/zfs/zfssubr.c
@@ -1574,7 +1574,7 @@ vdev_raidz_read(vdev_t *vd, const blkptr_t *bp, void *data,
 	raidz_map_t *rm;
 	raidz_col_t *rc;
 	int c, error;
-	int unexpected_errors;
+	int unexpected_errors __unused;
 	int parity_errors;
 	int parity_untried;
 	int data_errors;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305012104.341L4NtL051969>