Received: from eggs.gnu.org ([2001:4830:134:3::10]:34318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYTe-000430-Gh for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsYTb-00085e-B3 for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsYTb-000858-4j for qemu-devel@nongnu.org; Fri, 07 Oct 2016 12:58:27 -0400 From: Paolo Bonzini Date: Fri, 7 Oct 2016 18:57:36 +0200 Message-Id: <1475859483-32234-13-git-send-email-pbonzini@redhat.com> In-Reply-To: <1475859483-32234-1-git-send-email-pbonzini@redhat.com> References: <1475859483-32234-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 12/39] tcg/optimize: move default return out of if statement List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= From: Alex Benn=C3=A9e 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 Message-Id: <20160930213106.20186-5-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini --- 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; } =20 /* Return 2 if the condition can't be simplified, and the result --=20 2.7.4