Public bug reported:
The following line of code results in an implicit truncation of an uint16_t
value to an uint8_t variable, which triggers a compiler warning in MSVC :
https://github.com/qemu/qemu/blob/f8c3db33a5e863291182f8862ddf81618a7c6194/hw/usb/dev-hub.c#L387
(Two lines down, the same thing happens.)
This warning can be silenced by doing an explicit truncation, for
example by a casting the value explicitly to uint8_t type, or by anding
the value with 0xFF.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1844644
Title:
Compiler warnings using MSVC
Status in QEMU:
New
Bug description:
The following line of code results in an implicit truncation of an uint16_t
value to an uint8_t variable, which triggers a compiler warning in MSVC :
https://github.com/qemu/qemu/blob/f8c3db33a5e863291182f8862ddf81618a7c6194/hw/usb/dev-hub.c#L387
(Two lines down, the same thing happens.)
This warning can be silenced by doing an explicit truncation, for
example by a casting the value explicitly to uint8_t type, or by
anding the value with 0xFF.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1844644/+subscriptions