git: 3fbf4ca60b93 - main - libnv: Mark a variable only used in a custom assertion as unused.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Wed, 13 Apr 2022 23:09:08 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=3fbf4ca60b933ba3053805682fbcd6f376e9ab8e

commit 3fbf4ca60b933ba3053805682fbcd6f376e9ab8e
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-13 23:08:19 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-13 23:08:19 +0000

    libnv: Mark a variable only used in a custom assertion as unused.
---
 sys/contrib/libnv/bsd_nvpair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/contrib/libnv/bsd_nvpair.c b/sys/contrib/libnv/bsd_nvpair.c
index 00eee223fe92..152a2fb70428 100644
--- a/sys/contrib/libnv/bsd_nvpair.c
+++ b/sys/contrib/libnv/bsd_nvpair.c
@@ -552,7 +552,7 @@ unsigned char *
 nvpair_pack_string_array(const nvpair_t *nvp, unsigned char *ptr, size_t *leftp)
 {
 	unsigned int ii;
-	size_t size, len;
+	size_t size __unused, len;
 	const char * const *array;
 
 	NVPAIR_ASSERT(nvp);