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

[Xen-devel] [PATCH] Fix build error



Hi,

When I built the latest xen-unstable, I saw the following error messages.
This patch fixes it.

make[6]: Entering directory `/xen/xen-unstable.hg/xen/arch/x86/mm/shadow'
gcc -O2 -fomit-frame-pointer -m32 -march=i686 -fno-strict-aliasing -std=gnu99 
-Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement 
-DNDEBUG -nostdinc -fno-builtin -fno-common -iwithprefix include -Werror 
-Wno-pointer-arith -pipe -I/xen/xen-unstable.hg/xen/include 
-I/xen/xen-unstable.hg/xen/include/asm-x86/mach-generic 
-I/xen/xen-unstable.hg/xen/include/asm-x86/mach-default -msoft-float 
-fno-stack-protector -g -D__XEN__ -DGUEST_PAGING_LEVELS=2 -c multi.c -o 
guest_2.o
cc1: warnings being treated as errors
multi.c: In function ‘emulate_map_dest’:
multi.c:4648: warning: unused variable ‘sreg’
make[6]: *** [guest_2.o] Error 1
make[6]: Leaving directory `/xen/xen-unstable.hg/xen/arch/x86/mm/shadow'
make[5]: *** [shadow/built_in.o] Error 2
make[5]: Leaving directory `/xen/xen-unstable.hg/xen/arch/x86/mm'
make[4]: *** [mm/built_in.o] Error 2
make[4]: Leaving directory `/xen/xen-unstable.hg/xen/arch/x86'
make[3]: *** [/xen/xen-unstable.hg/xen/arch/x86/built_in.o] Error 2
make[3]: Leaving directory `/xen/xen-unstable.hg/xen/arch/x86'
make[2]: *** [/xen/xen-unstable.hg/xen/xen] Error 2
make[2]: Leaving directory `/xen/xen-unstable.hg/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/xen/xen-unstable.hg/xen'
make: *** [install-xen] Error 2


diff -r b0ee5e8613e9 xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c    Tue Jul 29 13:27:29 2008 +0100
+++ b/xen/arch/x86/mm/shadow/multi.c    Wed Jul 30 09:57:17 2008 +0900
@@ -4645,7 +4645,9 @@
                               u32 bytes,
                               struct sh_emulate_ctxt *sh_ctxt)
 {
+#ifndef NDEBUG
     struct segment_register *sreg;
+#endif
     unsigned long offset;
     void *map = NULL;
 

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>

Best regards,
 Kan



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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