git: 75f1351ac56f - stable/13 - vmm: fix set but not used warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 26 Jan 2023 19:28:45 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=75f1351ac56ff71abc49cd17e858f0876f43f4ef commit 75f1351ac56ff71abc49cd17e858f0876f43f4ef Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-04-10 18:30:14 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-01-26 19:26:56 +0000 vmm: fix set but not used warning (cherry picked from commit 3587bfa797cd66dce2e94ca93df5ce41def555df) --- 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 2337c4dec2b1..db8563c91830 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));