ae572d8970
Copy from IBS home:uli_suse:branches:SUSE:Factory:Head/qemu based on submit request 1038 from user uli_suse OBS-URL: https://build.opensuse.org/request/show/1038 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/qemu?expand=0&rev=31
41 lines
1.1 KiB
Diff
41 lines
1.1 KiB
Diff
From e880deb6d14c779cd9ecca4a25168c162183200e Mon Sep 17 00:00:00 2001
|
|
From: Ulrich Hecht <uli@suse.de>
|
|
Date: Tue, 14 Apr 2009 16:38:20 +0200
|
|
Subject: [PATCH 14/33] qemu-nonvoid_return
|
|
|
|
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
|
|
index 907bd99..a682695 100644
|
|
--- a/hw/mpcore.c
|
|
+++ b/hw/mpcore.c
|
|
@@ -108,6 +108,7 @@ static uint32_t mpcore_timer_read(mpcore_timer_state *s, int offset)
|
|
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
|
|
index b37578b..feaa155 100644
|
|
--- a/target-m68k/translate.c
|
|
+++ b/target-m68k/translate.c
|
|
@@ -440,6 +440,7 @@ static inline int opsize_bytes(int opsize)
|
|
qemu_assert(0, "bad operand size");
|
|
return 0;
|
|
}
|
|
+ return 0;
|
|
}
|
|
|
|
/* Assign value to a register. If the width is less than the register width
|
|
--
|
|
1.6.2.1
|
|
|