Fix build error
PATCH 1/1 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 errorsmulti.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
xen/arch/x86/mm/shadow/multi.c +2 -0
@@ -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 ;
Best regards,
Kan