Skip to contentSkip to conversation

Fix warning in mm.c with gcc-4.0; breaks build due to -Werror

PATCH New Josh Triplett 1 participant 1 message Aug 2, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix warning in mm.c with gcc-4.0; breaks build due to -Werror

The attached trivial patch fixes a spurious gcc-4.0 warning in xen/arch/x86/mm.c when building the current hg tip. Due to -Werror, this breaks builds with gcc-4.0.

- Josh Triplett

xen/arch/x86/mm.c +1 -1
diff -r 0d69d2ce73e9 xen/arch/x86/mm.c
@@ -1040,7 +1040,7 @@
                         unsigned int type)
 {
     l2_pgentry_t ol2e;
-    unsigned long vaddr;
+    unsigned long vaddr = 0;
 
     if ( unlikely(!is_guest_l2_slot(type,pgentry_ptr_to_slot(pl2e))) )
     {

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel