qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [Bug 1844644] Re: Compiler warnings using MSVC


From: Peter Maydell
Subject: [Qemu-devel] [Bug 1844644] Re: Compiler warnings using MSVC
Date: Thu, 19 Sep 2019 10:06:54 -0000

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]