From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:50772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6U3-0005ka-Rn for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QS6U1-0005iF-N5 for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QS6U1-0005i9-4x for qemu-devel@nongnu.org; Thu, 02 Jun 2011 07:54:37 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p52BsZN0001761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 2 Jun 2011 07:54:35 -0400 From: Juan Quintela Date: Thu, 2 Jun 2011 13:53:35 +0200 Message-Id: Subject: [Qemu-devel] [PATCH 00/14] More gcc 4.6 warnings fixes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi This series fixes compilation of plain: ./configure with gcc-4.6.0 on Fedora 15. Notes: - linuxload.c: why it define id_change if it never test its value? git log shows that it has been this way forever - linux-user/syscall.c: do we want to return an error in the default case? my guess is yes, but ... - mips: it puts 8 arguments on the stack, but do_syscall() only uses 6. at least some syscalls uses already 7 arguments, I guess this has never worked before. - for this kind of warnings, I have added: (void)unused_var; We can remove the variable altogether, comment it, use __attribute__(no_warn_unused). - linux-user, syscall for alpha. can anyone check tat my s/arg1/how/ is the right change. Looking at the normal sigprocmask call emulation, it looks like my change is wright, but one never knows. Later, Juan. Juan Quintela (14): kvm: remove fop write only variable tcg: define and set call_type only when it is used flatload: memp was a write-only variable xen: pentry is not used in this function linuxload: id_change was a write only variable flatload: end_code was only used in a debug message alpha: fn2 was a write only variable syscall: really return ret code exec: last_first_tb was only used in !ONLY_USER case mips: we really need the extra arguments linux-user: fpu_save_addr is not used linux-user: syscall should use sanitized arg1 alpha: disp12 is not used for USER emulation lsi53c895a: current_dev is not used exec.c | 10 +++++++--- hw/lsi53c895a.c | 2 -- linux-user/flatload.c | 8 ++------ linux-user/linuxload.c | 25 +------------------------ linux-user/main.c | 4 ++++ linux-user/signal.c | 3 ++- linux-user/syscall.c | 10 +++++----- target-alpha/translate.c | 10 +++++++--- target-i386/kvm.c | 3 +-- tcg/tcg.c | 9 +++------ xen-mapcache.c | 3 +-- 11 files changed, 33 insertions(+), 54 deletions(-) -- 1.7.5.2