git: acb7423df723 - main - bhnd: Use __diagused for a variable only used in a KASSERT().

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

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

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

    bhnd: Use __diagused for a variable only used in a KASSERT().
---
 sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c b/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
index 46ce66d4f434..e09da7000b29 100644
--- a/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
+++ b/sys/dev/bhnd/nvram/bhnd_nvram_data_sprom.c
@@ -1281,7 +1281,7 @@ bhnd_nvram_sprom_getvar_common(struct bhnd_nvram_data *nv, void *cookiep,
 {
 	struct bhnd_nvram_sprom		*sp;
 	bhnd_sprom_opcode_idx_entry	*entry;
-	const struct bhnd_nvram_vardefn	*var;
+	const struct bhnd_nvram_vardefn	*var __diagused;
 
 	BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep"));