qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables
Date: Tue, 14 Jun 2011 20:35:09 +0300
User-agent: Mutt/1.5.21 (2010-09-15)

Switched to FC15 and qemu build with -Werror fails. The reason
is that with gcc 4.6.0, -Werror makes the build fail on
variables that are set but never used.
XXX: In function ‘xxx’:
XXX:XXX:XX: error: variable ‘xx’ set but not used
[-Werror=unused-but-set-variable]

The following patchset removes such variables
from the codebase.

Note: the warning could actually point to a
bug in code. Pls review carefully.

Build tested only.

-- 
MST


Michael S. Tsirkin (10):
  ppce500: move device/vendor/class id to qdev
  usb-ehci: move device/vendor/class id to qdev
  usb-ehci: remove unused variables
  lsi53c895a: remove unused variables
  wdt: remove unused variables
  kvm: remove unused variables
  alpha/translate: remve unused variables
  alpha: remove unused variable
  exec: remove unused variable
  linux-user: remove unused variables

 exec.c                   |    4 ++++
 hw/lsi53c895a.c          |    2 --
 hw/ppce500_pci.c         |   13 +++----------
 hw/usb-ehci.c            |   19 +++++--------------
 hw/virtio-pci.h          |    8 +++++---
 hw/wdt_i6300esb.c        |    3 ---
 linux-user/flatload.c    |   10 ++++++----
 linux-user/linuxload.c   |   25 +------------------------
 linux-user/main.c        |    6 +++---
 linux-user/signal.c      |    5 -----
 linux-user/syscall.c     |    6 ------
 target-alpha/translate.c |   10 +++++++---
 target-i386/kvm.c        |    3 +--
 13 files changed, 35 insertions(+), 79 deletions(-)

-- 
1.7.5.53.gc233e



reply via email to

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