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

[Xen-changelog] [xen-unstable] [MINIOS] Fix compile warnings with -O.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1169219295 0
# Node ID 374688d2db788b1a81c2e544bbaba2e9b6f898c7
# Parent  5d08bf268f92fdf9febe4f3a99bd936f14a863a3
[MINIOS] Fix compile warnings with -O.
Signed-off-by: Dietmar Hahn <dietmar.hahn@xxxxxxxxxxxxxxxxxxx>
---
 extras/mini-os/arch/x86/mm.c   |    1 +
 extras/mini-os/netfront.c      |    2 --
 extras/mini-os/xenbus/xenbus.c |    2 +-
 3 files changed, 2 insertions(+), 3 deletions(-)

diff -r 5d08bf268f92 -r 374688d2db78 extras/mini-os/arch/x86/mm.c
--- a/extras/mini-os/arch/x86/mm.c      Fri Jan 19 15:05:20 2007 +0000
+++ b/extras/mini-os/arch/x86/mm.c      Fri Jan 19 15:08:15 2007 +0000
@@ -61,6 +61,7 @@ void new_pt_frame(unsigned long *pt_pfn,
     mmu_update_t mmu_updates[1];
     struct mmuext_op pin_request;
     
+    prot_e = prot_t = pincmd = 0;
     DEBUG("Allocating new L%d pt frame for pt_pfn=%lx, "
            "prev_l_mfn=%lx, offset=%lx", 
            level, *pt_pfn, prev_l_mfn, offset);
diff -r 5d08bf268f92 -r 374688d2db78 extras/mini-os/netfront.c
--- a/extras/mini-os/netfront.c Fri Jan 19 15:05:20 2007 +0000
+++ b/extras/mini-os/netfront.c Fri Jan 19 15:08:15 2007 +0000
@@ -327,7 +327,6 @@ done:
     printk("backend at %s\n",backend);
     printk("mac is %s\n",mac);
 
-    char *res;
     char path[256];
     sprintf(path,"%s/state",backend);
 
@@ -336,7 +335,6 @@ done:
     xenbus_wait_for_value(path,"4");
 
     //free(backend);
-    free(res);
 
     printk("**************************\n");
 
diff -r 5d08bf268f92 -r 374688d2db78 extras/mini-os/xenbus/xenbus.c
--- a/extras/mini-os/xenbus/xenbus.c    Fri Jan 19 15:05:20 2007 +0000
+++ b/extras/mini-os/xenbus/xenbus.c    Fri Jan 19 15:08:15 2007 +0000
@@ -103,7 +103,7 @@ static void xenbus_thread_func(void *ign
 static void xenbus_thread_func(void *ign)
 {
     struct xsd_sockmsg msg;
-    unsigned prod;
+    unsigned prod = 0;
 
     for (;;) 
     {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
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®.