[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC
From: |
Patrick van Logchem |
Subject: |
[Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC |
Date: |
Thu, 19 Sep 2019 09:34:45 -0000 |
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
- [Qemu-devel] [Bug 1844644] [NEW] Compiler warnings using MSVC,
Patrick van Logchem <=