qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] compiler warning


From: Paul Brook
Subject: Re: [Qemu-devel] [patch] compiler warning
Date: Sun, 20 Mar 2005 20:06:25 +0000
User-agent: KMail/1.7.2

On Sunday 20 March 2005 18:43, Paul Brook wrote:
> The patch below fixes the following compiler warning:
>
> cpu-exec.c:763: warning: control reaches end of non-void function

Updated version also fixes a similar problem with the SPARC target.

Paul

Index: cpu-exec.c
===================================================================
RCS file: /cvsroot/qemu/qemu/cpu-exec.c,v
retrieving revision 1.51
diff -u -p -r1.51 cpu-exec.c
--- cpu-exec.c 22 Feb 2005 19:27:14 -0000 1.51
+++ cpu-exec.c 20 Mar 2005 20:03:21 -0000
@@ -786,6 +791,8 @@ static inline int handle_cpu_signal(unsi
        do it (XXX: use sigsetjmp) */
     sigprocmask(SIG_SETMASK, old_set, NULL);
     cpu_loop_exit();
+    /* never comes here */
+    return 1;
 }
 #elif defined(TARGET_SPARC)
 static inline int handle_cpu_signal(unsigned long pc, unsigned long address,
@@ -822,6 +829,8 @@ static inline int handle_cpu_signal(unsi
        do it (XXX: use sigsetjmp) */
     sigprocmask(SIG_SETMASK, old_set, NULL);
     cpu_loop_exit();
+    /* never comes here */
+    return 1;
 }
 #elif defined (TARGET_PPC)
 static inline int handle_cpu_signal(unsigned long pc, unsigned long address,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]