The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/src/commit/?id=d487cba33d777efb9f6f7d7967ad2eaa629bcb90
commit d487cba33d777efb9f6f7d7967ad2eaa629bcb90 Author: Cy Schubert <[email protected]> AuthorDate: 2022-11-18 21:20:13 +0000 Commit: Cy Schubert <[email protected]> CommitDate: 2022-11-18 21:20:13 +0000 vmm: Fix non-INVARIANTS build Reported by: O. Hartmann <[email protected]> Reviewed by: jhb Fixes: 58eefc67a1cf Differential Revision: https://reviews.freebsd.org/D37444 --- sys/amd64/vmm/intel/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/vmm/intel/vmx.c b/sys/amd64/vmm/intel/vmx.c index 942caa6c58f8..b7b933eb9b18 100644 --- a/sys/amd64/vmm/intel/vmx.c +++ b/sys/amd64/vmm/intel/vmx.c @@ -1020,7 +1020,7 @@ vmx_setup_cr_shadow(int which, struct vmcs *vmcs, uint32_t initial) static void * vmx_init(struct vm *vm, pmap_t pmap) { - int error; + int error __diagused; struct vmx *vmx; vmx = malloc(sizeof(struct vmx), M_VMX, M_WAITOK | M_ZERO);
