Commit 1ed1a7873882b75d1c857a0b3d0415be70d886ef
1 parent
60dd316e
Silence some warnings about no value returned from non-void function
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5430 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
2 additions
and
1 deletions
target-m68k/translate.c
| @@ -449,6 +449,7 @@ static inline int opsize_bytes(int opsize) | @@ -449,6 +449,7 @@ static inline int opsize_bytes(int opsize) | ||
| 449 | case OS_DOUBLE: return 8; | 449 | case OS_DOUBLE: return 8; |
| 450 | default: | 450 | default: |
| 451 | qemu_assert(0, "bad operand size"); | 451 | qemu_assert(0, "bad operand size"); |
| 452 | + return 0; | ||
| 452 | } | 453 | } |
| 453 | } | 454 | } |
| 454 | 455 |
target-sh4/translate.c
| @@ -228,7 +228,7 @@ void sh4_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) | @@ -228,7 +228,7 @@ void sh4_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) | ||
| 228 | (*cpu_fprintf)(f, "%s\n", sh4_defs[i].name); | 228 | (*cpu_fprintf)(f, "%s\n", sh4_defs[i].name); |
| 229 | } | 229 | } |
| 230 | 230 | ||
| 231 | -static int cpu_sh4_register(CPUSH4State *env, const sh4_def_t *def) | 231 | +static void cpu_sh4_register(CPUSH4State *env, const sh4_def_t *def) |
| 232 | { | 232 | { |
| 233 | env->pvr = def->pvr; | 233 | env->pvr = def->pvr; |
| 234 | env->prr = def->prr; | 234 | env->prr = def->prr; |