qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1577841] Re: target-mips/helper.c:542: bad sizeof ?


From: T. Huth
Subject: [Qemu-devel] [Bug 1577841] Re: target-mips/helper.c:542: bad sizeof ?
Date: Fri, 27 May 2016 07:24:08 -0000

Fix has been included here:
http://git.qemu.org/?p=qemu.git;a=commitdiff;h=9d989c732b153fe15

** Changed in: qemu
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1577841

Title:
  target-mips/helper.c:542: bad sizeof ?

Status in QEMU:
  Fix Committed

Bug description:
  Recent versions of gcc say this:

  qemu/target-mips/helper.c:542:9: warning: ‘memset’ used with length
  equal to number of elements without multiplication by element size
  [-Wmemset-elt-size]

  Source code is

     memset(env->CP0_WatchLo, 0, sizeof(*env->CP0_WatchLo));

  Maybe better code

     memset(env->CP0_WatchLo, 0, 8 * sizeof(target_ulong));

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1577841/+subscriptions



reply via email to

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