Silence some warnings about no value returned from non-void function
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 11:47:55 +0000 (11:47 +0000)
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>
Sun, 5 Oct 2008 11:47:55 +0000 (11:47 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5430 c046a42c-6fe2-441c-8c8c-71466251a162

target-m68k/translate.c
target-sh4/translate.c

index 98056000c7d6e868da2633ad6184df6d3dde09f0..df3a418ae89d7e5644b7baac5560882c5abebe6c 100644 (file)
@@ -449,6 +449,7 @@ static inline int opsize_bytes(int opsize)
     case OS_DOUBLE: return 8;
     default:
         qemu_assert(0, "bad operand size");
+        return 0;
     }
 }
 
index 4614c8674b8497d8ecd5121f718f3352ea2dac0b..91821a18ae6043065904bb4898e9641377044ebc 100644 (file)
@@ -228,7 +228,7 @@ void sh4_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...))
        (*cpu_fprintf)(f, "%s\n", sh4_defs[i].name);
 }
 
-static int cpu_sh4_register(CPUSH4State *env, const sh4_def_t *def)
+static void cpu_sh4_register(CPUSH4State *env, const sh4_def_t *def)
 {
     env->pvr = def->pvr;
     env->prr = def->prr;