All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-trivial] [PATCH] target-alpha: fix uninitialized variable
@ 2015-10-19 14:08 ` Paolo Bonzini
  0 siblings, 0 replies; 10+ messages in thread
From: Paolo Bonzini @ 2015-10-19 14:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial

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 <pbonzini@redhat.com>
---
 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



^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-11-03 12:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 14:08 [Qemu-trivial] [PATCH] target-alpha: fix uninitialized variable Paolo Bonzini
2015-10-19 14:08 ` [Qemu-devel] " Paolo Bonzini
2015-10-21 23:15 ` [Qemu-trivial] " Richard Henderson
2015-10-21 23:15   ` Richard Henderson
2015-11-03 12:01   ` [Qemu-trivial] " Michael Tokarev
2015-11-03 12:01     ` [Qemu-devel] " Michael Tokarev
2015-11-03 12:06     ` [Qemu-trivial] " Paolo Bonzini
2015-11-03 12:06       ` [Qemu-devel] " Paolo Bonzini
2015-10-29  7:49 ` [Qemu-trivial] " Michael Tokarev
2015-10-29  7:49   ` [Qemu-devel] " Michael Tokarev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.