git: 8fff0abd4746 - 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:41 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=8fff0abd4746a7d89d452621cb47ed2a8adfb4de commit 8fff0abd4746a7d89d452621cb47ed2a8adfb4de Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-04-10 18:30:05 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-01-26 19:26:41 +0000 vmm: fix set but not used warning (cherry picked from commit 893a3dd697ef4ac0a432ca8ce8790661884eb1ea) --- 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"));