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

[Xen-devel] [PATCH] qemu-traditional: fix no-return-in-nonvoid-function


  • To: xen-devel@xxxxxxxxxxxxx
  • From: Olaf Hering <olaf@xxxxxxxxx>
  • Date: Thu, 12 Jul 2012 10:13:26 +0200
  • Delivery-date: Thu, 12 Jul 2012 08:14:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

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(-)

Index: qemu-xen-traditional-dir-remote/qemu-xen.h
===================================================================
--- qemu-xen-traditional-dir-remote.orig/qemu-xen.h
+++ qemu-xen-traditional-dir-remote/qemu-xen.h
@@ -129,7 +129,7 @@ int xenstore_find_device(BlockDriverStat
 
 /* 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);
 
Index: qemu-xen-traditional-dir-remote/savevm.c
===================================================================
--- qemu-xen-traditional-dir-remote.orig/savevm.c
+++ qemu-xen-traditional-dir-remote/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)
Index: qemu-xen-traditional-dir-remote/xenfbfront.c
===================================================================
--- qemu-xen-traditional-dir-remote.orig/xenfbfront.c
+++ qemu-xen-traditional-dir-remote/xenfbfront.c
@@ -355,7 +355,7 @@ int xenfb_pv_display_init(DisplayState *
     return 0;
 }
 
-int xenfb_pv_display_vram(void *data)
+void xenfb_pv_display_vram(void *data)
 {
     vga_vram = data;
 }

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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