From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXWk-0003zL-5N for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QWXWi-0005zw-Hf for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:35:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QWXWh-0005zb-Tp for qemu-devel@nongnu.org; Tue, 14 Jun 2011 13:35:44 -0400 Date: Tue, 14 Jun 2011 20:35:09 +0300 From: "Michael S. Tsirkin" Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 00/10] qemu: remove set but unused variables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Alexander Graf , Anthony Liguori , Marcelo Tosatti , Gerd Hoffmann , Stefan Hajnoczi , kvm@vger.kernel.org, "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 =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