git: 85575132fe13 - main - stand/zfs: Mark pcount as unused
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Dec 2021 03:04:23 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=85575132fe13a630467b9afe34cd245885d9b8a4 commit 85575132fe13a630467b9afe34cd245885d9b8a4 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-12-16 02:47:48 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-12-16 02:47:48 +0000 stand/zfs: Mark pcount as unused pcount is unused in the sense that it's set but never used except in an assert. But asserts are compiled out always, so just mark it as unused. Sponsored by: Netflix --- sys/cddl/boot/zfs/zfssubr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/cddl/boot/zfs/zfssubr.c b/sys/cddl/boot/zfs/zfssubr.c index dd22f268bd20..2603a69d6f9f 100644 --- a/sys/cddl/boot/zfs/zfssubr.c +++ b/sys/cddl/boot/zfs/zfssubr.c @@ -527,7 +527,8 @@ vdev_raidz_exp2(uint8_t a, int exp) static void vdev_raidz_generate_parity_p(raidz_map_t *rm) { - uint64_t *p, *src, pcount, ccount, i; + uint64_t *p, *src, ccount, i; + uint64_t pcount __unused; int c; pcount = rm->rm_col[VDEV_RAIDZ_P].rc_size / sizeof (src[0]);