summaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2022-11-18 21:20:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-01-26 22:06:47 +0000
commit20b3385d4236b7605b6f1d95c3ac6605e66b1ca0 (patch)
tree7bbd517134eaebdbd55b5e4fef50bf85fbe52449 /sys/amd64
parent4aded963cdceef453656098719a13a2d4842787c (diff)
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/vmm/intel/vmx.c2
1 files changed, 1 insertions, 1 deletions
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);