vmm: fix set but not used warning

This commit is contained in:
Robert Wing 2022-04-10 10:30:19 -08:00
parent 5241577a22
commit 5a17f489d5

View file

@ -157,7 +157,7 @@ emulate_inout_str(struct vm *vm, int vcpuid, struct vm_exit *vmexit, bool *retu)
int
vm_handle_inout(struct vm *vm, int vcpuid, struct vm_exit *vmexit, bool *retu)
{
int bytes, error;
int bytes __diagused, error;
bytes = vmexit->u.inout.bytes;
KASSERT(bytes == 1 || bytes == 2 || bytes == 4,