i386/hvf: Fixes some compilation warnings
authorPhil Dennis-Jordan <phil@philjordan.eu>
Wed, 5 Jun 2024 11:25:51 +0000 (13:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 8 Jun 2024 08:33:38 +0000 (10:33 +0200)
commit0e4e622e328e203610ac300a140e43d5e2929eda
tree747f394749b6fe73ce44413a41823171a8ecbd77
parent9c267239c7a307645849139389b42641655b7ece
i386/hvf: Fixes some compilation warnings

A bunch of function definitions used empty parentheses instead of (void) syntax, yielding the following warning when building with clang on macOS:

warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]

In addition to fixing these function headers, it also fixes what appears to be a typo causing a variable to be unused after initialisation.

warning: variable 'entry_ctls' set but not used [-Wunused-but-set-variable]

Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
Reviewed-by: Roman Bolshakov <roman@roolebo.dev>
Tested-by: Roman Bolshakov <roman@roolebo.dev>
Message-ID: <20240605112556.43193-3-phil@philjordan.eu>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
target/i386/hvf/vmx.h
target/i386/hvf/x86_decode.c
target/i386/hvf/x86_emu.c