mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
qga: Fix mingw compilation warnings on enum conversion
The win2qemu[] is supposed to be the conversion table to convert between STORAGE_BUS_TYPE in Windows SDK and GuestDiskBusType in qga. But it was incorrectly written that it forces to set a GuestDiskBusType value to STORAGE_BUS_TYPE, which generates an enum conversion warning in clang. Suggested-by: Eric Blake <eblake@redhat.com> Signed-off-by: Cao Jiaxi <driver1998@foxmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-id: 20190503003650.10137-1-driver1998@foxmail.com Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
48bb55bfaa
commit
8ac6557892
@ -457,7 +457,7 @@ void qmp_guest_file_flush(int64_t handle, Error **errp)
|
||||
|
||||
#ifdef CONFIG_QGA_NTDDSCSI
|
||||
|
||||
static STORAGE_BUS_TYPE win2qemu[] = {
|
||||
static GuestDiskBusType win2qemu[] = {
|
||||
[BusTypeUnknown] = GUEST_DISK_BUS_TYPE_UNKNOWN,
|
||||
[BusTypeScsi] = GUEST_DISK_BUS_TYPE_SCSI,
|
||||
[BusTypeAtapi] = GUEST_DISK_BUS_TYPE_IDE,
|
||||
|
Loading…
Reference in New Issue
Block a user