git: 893a3dd697ef - main - vmm: fix set but not used warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 10 Apr 2022 18:34:05 UTC
The branch main has been updated by rew: URL: https://cgit.FreeBSD.org/src/commit/?id=893a3dd697ef4ac0a432ca8ce8790661884eb1ea commit 893a3dd697ef4ac0a432ca8ce8790661884eb1ea Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-04-10 18:30:05 +0000 Commit: Robert Wing <rew@FreeBSD.org> CommitDate: 2022-04-10 18:30:05 +0000 vmm: fix set but not used warning --- sys/amd64/vmm/amd/amdvi_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/vmm/amd/amdvi_hw.c b/sys/amd64/vmm/amd/amdvi_hw.c index 86df0ad76bf5..87270b24c9f6 100644 --- a/sys/amd64/vmm/amd/amdvi_hw.c +++ b/sys/amd64/vmm/amd/amdvi_hw.c @@ -423,7 +423,7 @@ amdvi_cmd_inv_intr_map(struct amdvi_softc *softc, static void amdvi_inv_domain(struct amdvi_softc *softc, uint16_t domain_id) { - struct amdvi_cmd *cmd; + struct amdvi_cmd *cmd __diagused; cmd = amdvi_get_cmd_tail(softc); KASSERT(cmd != NULL, ("Cmd is NULL"));