From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55576) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmG2C-0005om-FE for qemu-devel@nongnu.org; Tue, 20 Sep 2016 04:04:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmG28-0005oo-EK for qemu-devel@nongnu.org; Tue, 20 Sep 2016 04:04:08 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36595) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmG28-0005oj-6H for qemu-devel@nongnu.org; Tue, 20 Sep 2016 04:04:04 -0400 Received: by mail-lf0-f65.google.com with SMTP id s29so470312lfg.3 for ; Tue, 20 Sep 2016 01:04:04 -0700 (PDT) MIME-Version: 1.0 References: <20160919155139.28371-1-alex.bennee@linaro.org> <20160919155139.28371-3-alex.bennee@linaro.org> In-Reply-To: <20160919155139.28371-3-alex.bennee@linaro.org> From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Date: Tue, 20 Sep 2016 08:02:53 +0000 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC 2/8] tcg/optimize: move default return out of if statement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QWxleCBCZW5uw6ll?= , qemu-devel@nongnu.org, pbonzini@redhat.com, cota@braap.org, stefanha@redhat.com, kwolf@redhat.com Cc: mttcg@listserver.greensocs.com, peter.maydell@linaro.org, claudio.fontana@huawei.com, nikunj@linux.vnet.ibm.com, jan.kiszka@siemens.com, mark.burton@greensocs.com, a.rigo@virtualopensystems.com, serge.fdrv@gmail.com, bobby.prani@gmail.com, rth@twiddle.net, fred.konrad@greensocs.com On Mon, Sep 19, 2016 at 7:56 PM Alex Benn=C3=A9e w= rote: > This is to appease sanitizer builds which complain that: > > "error: control reaches end of non-void function" > > Signed-off-by: Alex Benn=C3=A9e > Reviewed-by: Marc-Andr=C3=A9 Lureau > --- > tcg/optimize.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tcg/optimize.c b/tcg/optimize.c > index 9998ac7..0f13490 100644 > --- a/tcg/optimize.c > +++ b/tcg/optimize.c > @@ -468,9 +468,8 @@ static TCGArg do_constant_folding_cond(TCGOpcode op, > TCGArg x, > default: > return 2; > } > - } else { > - return 2; > } > + return 2; > } > > /* Return 2 if the condition can't be simplified, and the result > -- > 2.9.3 > > > -- Marc-Andr=C3=A9 Lureau