git: 3587bfa797cd - main - vmm: fix set but not used warning

From: Robert Wing <rew_at_FreeBSD.org>
Date: Sun, 10 Apr 2022 18:34:08 UTC
The branch main has been updated by rew:

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

commit 3587bfa797cd66dce2e94ca93df5ce41def555df
Author:     Robert Wing <rew@FreeBSD.org>
AuthorDate: 2022-04-10 18:30:14 +0000
Commit:     Robert Wing <rew@FreeBSD.org>
CommitDate: 2022-04-10 18:30:14 +0000

    vmm: fix set but not used warning
---
 sys/amd64/vmm/vmm_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/vmm/vmm_dev.c b/sys/amd64/vmm/vmm_dev.c
index a83c74219fee..f5973ef5b6a7 100644
--- a/sys/amd64/vmm/vmm_dev.c
+++ b/sys/amd64/vmm/vmm_dev.c
@@ -993,7 +993,7 @@ vmmdev_destroy(void *arg)
 {
 	struct vmmdev_softc *sc = arg;
 	struct devmem_softc *dsc;
-	int error;
+	int error __diagused;
 
 	error = vcpu_lock_all(sc);
 	KASSERT(error == 0, ("%s: error %d freezing vcpus", __func__, error));