From d487cba33d777efb9f6f7d7967ad2eaa629bcb90 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Fri, 18 Nov 2022 13:20:13 -0800 Subject: [PATCH] vmm: Fix non-INVARIANTS build Reported by: O. Hartmann 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);