The branch main has been updated by rew:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=5a17f489d5848085307e1d5fa7ca142694b4946b

commit 5a17f489d5848085307e1d5fa7ca142694b4946b
Author:     Robert Wing <r...@freebsd.org>
AuthorDate: 2022-04-10 18:30:19 +0000
Commit:     Robert Wing <r...@freebsd.org>
CommitDate: 2022-04-10 18:30:19 +0000

    vmm: fix set but not used warning
---
 sys/amd64/vmm/vmm_ioport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/amd64/vmm/vmm_ioport.c b/sys/amd64/vmm/vmm_ioport.c
index e494bac46f23..e30f796d598c 100644
--- a/sys/amd64/vmm/vmm_ioport.c
+++ b/sys/amd64/vmm/vmm_ioport.c
@@ -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,

Reply via email to