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, 02 Sep 2016 21:07:40 -0000

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

-- 
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 Released

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]