]> Git Repo - qemu.git/commit
qga: Fix mingw compilation warnings on enum conversion
authorCao Jiaxi <[email protected]>
Tue, 7 May 2019 11:55:03 +0000 (12:55 +0100)
committerPeter Maydell <[email protected]>
Tue, 7 May 2019 11:55:03 +0000 (12:55 +0100)
commit8ac65578920a98a845aa8c80ea19140a51440185
tree9fff5a0a02eb078f87728ffeeb0d00fbd7b3aaab
parent48bb55bfaa4e8c4799e0ee3dda3b1dde0e25ef72
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 <[email protected]>
Signed-off-by: Cao Jiaxi <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Thomas Huth <[email protected]>
Message-id: 20190503003650[email protected]
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
qga/commands-win32.c
This page took 0.026973 seconds and 4 git commands to generate.