WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] today's gcc4ism
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
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] today's gcc4ism, Rik van Riel <=