* [Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC
@ 2019-09-19 9:34 Patrick van Logchem
2019-09-19 10:06 ` [Qemu-devel] [Bug 1844644] " Peter Maydell
0 siblings, 1 reply; 2+ messages in thread
From: Patrick van Logchem @ 2019-09-19 9:34 UTC (permalink / raw)
To: qemu-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Qemu-devel] [Bug 1844644] Re: Compiler warnings using MSVC
2019-09-19 9:34 [Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC Patrick van Logchem
@ 2019-09-19 10:06 ` Peter Maydell
0 siblings, 0 replies; 2+ messages in thread
From: Peter Maydell @ 2019-09-19 10:06 UTC (permalink / raw)
To: qemu-devel
Hi; MSVC is not a supported compiler for QEMU. We expect it to be built
with either gcc or llvm.
** Changed in: qemu
Status: New => Invalid
--
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:
Invalid
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-09-19 10:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19 9:34 [Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC Patrick van Logchem
2019-09-19 10:06 ` [Qemu-devel] [Bug 1844644] " Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).