2011-12-14 02:35:41 +01:00
|
|
|
From 7e6479e0d45e45e888cb79759fd44d6c14be19f4 Mon Sep 17 00:00:00 2001
|
2009-08-11 17:37:13 +02:00
|
|
|
From: Ulrich Hecht <uli@suse.de>
|
|
|
|
Date: Tue, 14 Apr 2009 16:38:20 +0200
|
2012-01-10 17:25:36 +01:00
|
|
|
Subject: [PATCH 26/44] qemu-nonvoid_return
|
2009-08-11 17:37:13 +02:00
|
|
|
|
|
|
|
Squelches GCC warnings about undefined return values.
|
|
|
|
|
|
|
|
Signed-off-by: Ulrich Hecht <uli@suse.de>
|
|
|
|
---
|
|
|
|
hw/mpcore.c | 1 +
|
|
|
|
target-m68k/translate.c | 1 +
|
|
|
|
2 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/hw/mpcore.c b/hw/mpcore.c
|
2011-12-11 03:42:09 +01:00
|
|
|
index d6175cf..58dfd09 100644
|
2009-08-11 17:37:13 +02:00
|
|
|
--- a/hw/mpcore.c
|
|
|
|
+++ b/hw/mpcore.c
|
2011-12-11 03:42:09 +01:00
|
|
|
@@ -106,6 +106,7 @@ static uint32_t mpcore_timer_read(mpcore_timer_state *s, int offset)
|
2009-08-11 17:37:13 +02:00
|
|
|
default:
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static void mpcore_timer_write(mpcore_timer_state *s, int offset,
|
|
|
|
diff --git a/target-m68k/translate.c b/target-m68k/translate.c
|
2011-12-11 03:42:09 +01:00
|
|
|
index 0e7f1fe..bfaf116 100644
|
2009-08-11 17:37:13 +02:00
|
|
|
--- a/target-m68k/translate.c
|
|
|
|
+++ b/target-m68k/translate.c
|
2011-12-11 03:42:09 +01:00
|
|
|
@@ -436,6 +436,7 @@ static inline int opsize_bytes(int opsize)
|
2009-08-11 17:37:13 +02:00
|
|
|
qemu_assert(0, "bad operand size");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
+ return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Assign value to a register. If the width is less than the register width
|
|
|
|
--
|
2011-12-11 03:42:09 +01:00
|
|
|
1.6.0.2
|
2009-08-11 17:37:13 +02:00
|
|
|
|