The branch stable/13 has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=20b3385d4236b7605b6f1d95c3ac6605e66b1ca0

commit 20b3385d4236b7605b6f1d95c3ac6605e66b1ca0
Author:     Cy Schubert <[email protected]>
AuthorDate: 2022-11-18 21:20:13 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2023-01-26 22:06:47 +0000

    vmm: Fix non-INVARIANTS build
    
    Reported by:    O. Hartmann <[email protected]>
    Reviewed by:    jhb
    Fixes:          58eefc67a1cf
    Differential Revision:  https://reviews.freebsd.org/D37444
    
    (cherry picked from commit d487cba33d777efb9f6f7d7967ad2eaa629bcb90)
---
 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);

Reply via email to