git: 3e0fa81b39a6 - 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:46 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=3e0fa81b39a683865ae0594ac38f9c0b7a7b8750 commit 3e0fa81b39a683865ae0594ac38f9c0b7a7b8750 Author: Robert Wing <rew@FreeBSD.org> AuthorDate: 2022-04-10 18:30:16 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-01-26 19:27:01 +0000 vmm: fix set but not used warning (cherry picked from commit 5241577a223d805282f726cb443a566aca653b9f) --- sys/amd64/vmm/vmm_instruction_emul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/vmm/vmm_instruction_emul.c b/sys/amd64/vmm/vmm_instruction_emul.c index ae022210893c..809fa16bce46 100644 --- a/sys/amd64/vmm/vmm_instruction_emul.c +++ b/sys/amd64/vmm/vmm_instruction_emul.c @@ -717,7 +717,7 @@ get_gla(void *vm, int vcpuid, struct vie *vie, struct vm_guest_paging *paging, { struct seg_desc desc; uint64_t cr0, val, rflags; - int error; + int error __diagused; error = vie_read_register(vm, vcpuid, VM_REG_GUEST_CR0, &cr0); KASSERT(error == 0, ("%s: error %d getting cr0", __func__, error));