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

[Xen-devel] [PATCH] today's gcc4ism


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
  • From: Rik van Riel <riel@xxxxxxxxxx>
  • Date: Wed, 9 Mar 2005 17:09:48 -0500 (EST)
  • Delivery-date: Wed, 09 Mar 2005 22:11:58 +0000
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>

New from yesterday night's snapshot.  I'm not 100% sure, but it
looks like __gnttab_map_grant_ref() might indeed return 0 without
initialising va ...

grant_table.c: In function 'do_grant_table_op':
grant_table.c:348: warning: 'va' may be used uninitialized in this function
make[3]: *** [grant_table.o] Error 1

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

--- xen-unstable/xen/common/grant_table.c.orig  2005-03-09 15:48:16.000000000 
-0500
+++ xen-unstable/xen/common/grant_table.c       2005-03-09 16:57:38.000000000 
-0500
@@ -345,7 +345,7 @@
     gnttab_map_grant_ref_t *uop, unsigned int count)
 {
     int i, flush = 0;
-    unsigned long va;
+    unsigned long va = 0;
 
     for ( i = 0; i < count; i++ )
         if ( __gnttab_map_grant_ref(&uop[i], &va) == 0)


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

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