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

[Xen-changelog] [qemu-xen-unstable] qemu-traditional: fix no-return-in-nonvoid-function



commit 00fb2aae68e915b7f456fd5e3997ddf31339004a
Author: Olaf Hering <olaf@xxxxxxxxx>
Date:   Mon Jul 23 17:56:13 2012 +0100

    qemu-traditional: fix no-return-in-nonvoid-function
    
    rpm post-build-checks found a few issues in qemu-xen-traditional and
    marks them as errors.
    
    I: Program returns random data in a function
    E: xen no-return-in-nonvoid-function savevm.c:215
    E: xen no-return-in-nonvoid-function 
/usr/src/packages/BUILD/xen-4.2.25602/non-dbg/stubdom/ioemu/xenfbfront.c:361
    
    Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
---
 qemu-xen.h   |    2 +-
 savevm.c     |    2 +-
 xenfbfront.c |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qemu-xen.h b/qemu-xen.h
index d50c89f..0598668 100644
--- a/qemu-xen.h
+++ b/qemu-xen.h
@@ -129,7 +129,7 @@ int xenstore_find_device(BlockDriverState *bs);
 
 /* xenfbfront.c */
 int xenfb_pv_display_init(DisplayState *ds);
-int xenfb_pv_display_vram(void *vram_start);
+void xenfb_pv_display_vram(void *vram_start);
 int xenfb_connect_vkbd(const char *path);
 int xenfb_connect_vfb(const char *path);
 
diff --git a/savevm.c b/savevm.c
index 71a57eb..746a713 100644
--- a/savevm.c
+++ b/savevm.c
@@ -210,8 +210,8 @@ static int popen_close(void *opaque)
     QEMUFilePopen *s = opaque;
     pclose(s->popen_file);
     qemu_free(s);
-    return 0;
 #endif
+    return 0;
 }
 
 QEMUFile *qemu_popen(FILE *popen_file, const char *mode)
diff --git a/xenfbfront.c b/xenfbfront.c
index ed79cde..d83693f 100644
--- a/xenfbfront.c
+++ b/xenfbfront.c
@@ -355,7 +355,7 @@ int xenfb_pv_display_init(DisplayState *ds)
     return 0;
 }
 
-int xenfb_pv_display_vram(void *data)
+void xenfb_pv_display_vram(void *data)
 {
     vga_vram = data;
 }
--
generated by git-patchbot for /home/xen/git/qemu-xen-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.