Received: from eggs.gnu.org ([2001:4830:134:3::10]:48331) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoB7H-0004Xk-Gv for qemu-devel@nongnu.org; Mon, 19 Oct 2015 10:08:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoB7D-0000nx-K2 for qemu-devel@nongnu.org; Mon, 19 Oct 2015 10:08:47 -0400 From: Paolo Bonzini Date: Mon, 19 Oct 2015 16:08:38 +0200 Message-Id: <1445263720-6765-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH] target-alpha: fix uninitialized variable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org I am not sure why the compiler does not catch it. There is no semantic change since gen_excp returns EXIT_NORETURN, but the old code is wrong. Reported by Coverity. Signed-off-by: Paolo Bonzini --- target-alpha/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-alpha/translate.c b/target-alpha/translate.c index f936d1b..53f6833 100644 --- a/target-alpha/translate.c +++ b/target-alpha/translate.c @@ -2916,7 +2916,7 @@ void gen_intermediate_code(CPUAlphaState *env, struct TranslationBlock *tb) num_insns++; if (unlikely(cpu_breakpoint_test(cs, ctx.pc, BP_ANY))) { - gen_excp(&ctx, EXCP_DEBUG, 0); + ret = gen_excp(&ctx, EXCP_DEBUG, 0); break; } if (num_insns == max_insns && (tb->cflags & CF_LAST_IO)) { -- 2.5.0