qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables
@ 2011-06-14 17:35 Michael S. Tsirkin
  2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
                   ` (9 more replies)
  0 siblings, 10 replies; 34+ messages in thread
From: Michael S. Tsirkin @ 2011-06-14 17:35 UTC (permalink / raw)
  To: qemu-devel
  Cc: Kevin Wolf, Alexander Graf, Anthony Liguori, Marcelo Tosatti,
	Gerd Hoffmann, Stefan Hajnoczi, kvm, Michael S. Tsirkin,
	Jan Kiszka, Riku Voipio, Christoph Hellwig, Blue Swirl,
	Alex Williamson, Isaku Yamahata, Paul Brook, Paolo Bonzini,
	Avi Kivity, Aurelien Jarno, Richard Henderson

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

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2011-06-27  9:13 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 17:35 [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 01/10] ppce500: move device/vendor/class id to qdev Michael S. Tsirkin
2011-06-14 22:42   ` Isaku Yamahata
2011-06-14 17:35 ` [Qemu-devel] [PATCH 02/10] usb-ehci: " Michael S. Tsirkin
2011-06-14 17:35 ` [Qemu-devel] [PATCH 03/10] usb-ehci: remove unused variables Michael S. Tsirkin
2011-06-15  6:45   ` Gerd Hoffmann
2011-06-14 17:35 ` [Qemu-devel] [PATCH 04/10] lsi53c895a: " Michael S. Tsirkin
2011-06-15  9:23   ` Stefan Hajnoczi
2011-06-14 17:35 ` [Qemu-devel] [PATCH 05/10] wdt: " Michael S. Tsirkin
2011-06-14 22:47   ` Isaku Yamahata
2011-06-14 17:36 ` [Qemu-devel] [PATCH 06/10] kvm: " Michael S. Tsirkin
2011-06-15  7:38   ` Kevin Wolf
2011-06-15  8:25     ` Michael S. Tsirkin
2011-06-15  8:42       ` Jan Kiszka
2011-06-15 12:44   ` Chris Krumme
2011-06-15 18:29     ` Michael S. Tsirkin
2011-06-14 17:36 ` [Qemu-devel] [PATCH 07/10] alpha/translate: remve " Michael S. Tsirkin
2011-06-14 17:47   ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 08/10] alpha: remove unused variable Michael S. Tsirkin
2011-06-14 17:47   ` Richard Henderson
2011-06-23 11:47     ` Peter Maydell
2011-06-23 15:25       ` Richard Henderson
2011-06-14 17:36 ` [Qemu-devel] [PATCH 09/10] exec: " Michael S. Tsirkin
2011-06-26 11:08   ` Michael S. Tsirkin
2011-06-26 14:32     ` Stefan Hajnoczi
2011-06-14 17:36 ` [Qemu-devel] [PATCH 10/10] linux-user: remove unused variables Michael S. Tsirkin
2011-06-15  8:35   ` Alexander Graf
2011-06-15  8:55     ` Michael S. Tsirkin
2011-06-15 14:32     ` Richard Henderson
2011-06-15 18:40       ` Michael S. Tsirkin
2011-06-15 16:51     ` Peter Maydell
2011-06-26 11:11   ` Michael S. Tsirkin
2011-06-27  9:06     ` Peter Maydell
2011-06-27  9:13       ` Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).