From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56083) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ZaW-0000Rh-8U for qemu-devel@nongnu.org; Sun, 28 Jul 2013 18:37:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3ZaR-0005it-9O for qemu-devel@nongnu.org; Sun, 28 Jul 2013 18:37:16 -0400 Received: from hall.aurel32.net ([2001:470:1f0b:4a8::1]:55307) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ZaR-0005im-21 for qemu-devel@nongnu.org; Sun, 28 Jul 2013 18:37:11 -0400 Date: Mon, 29 Jul 2013 00:37:10 +0200 From: Aurelien Jarno Message-ID: <20130728223710.GF10155@hall.aurel32.net> References: <1374783031-26633-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1374783031-26633-1-git-send-email-sw@weilnetz.de> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH] target-mips: Remove assignment to a variable which is never used List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: qemu-trivial , qemu-devel On Thu, Jul 25, 2013 at 10:10:31PM +0200, Stefan Weil wrote: > This assignment causes a compiler warning for compilations with the compiler > option -Wunused-but-set-variable (which is included with -Wextra). > > Removing it allows using -Wextra for QEMU code without suppressing too many > extra warnings. > > Signed-off-by: Stefan Weil > --- > target-mips/op_helper.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c > index 5cf1c3f..b828375 100644 > --- a/target-mips/op_helper.c > +++ b/target-mips/op_helper.c > @@ -1735,7 +1735,6 @@ target_ulong helper_evpe(CPUMIPSState *env) > void helper_fork(target_ulong arg1, target_ulong arg2) > { > // arg1 = rt, arg2 = rs > - arg1 = 0; > // TODO: store to TC register > } > Thanks, applied. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net