From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCH 00/10] qemu: remove set but unused variables Date: Tue, 14 Jun 2011 20:35:09 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paul Brook , Kevin Wolf , Gerd Hoffmann , Anthony Liguori , Riku Voipio , Richard Henderson , Avi Kivity , Marcelo Tosatti , qemu-devel@nongnu.org, Alex Williamson , Blue Swirl , Stefan Weil , Jan Kiszka , Paolo Bonzini , Christoph Hellwig , "Michael S. Tsirkin" , Aurelien Jarno , Stefan Hajnoczi , Alexander Graf , Isaku Yamahata , kvm@vger.kernel.org To: qemu-devel@nongnu.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55461 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977Ab1FNRfy (ORCPT ); Tue, 14 Jun 2011 13:35:54 -0400 Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: 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 =E2=80=98xxx=E2=80=99: XXX:XXX:XX: error: variable =E2=80=98xx=E2=80=99 set but not used [-Werror=3Dunused-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. --=20 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(-) --=20 1.7.5.53.gc233e