Skip to contentSkip to conversation

minios: fix compile error

PATCH New Akio Takebe 1 participant 1 message Mar 26, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 minios: fix compile error

Hi,

The patch fixes the following compile error.

# make
[ -e include/xen ] || ln -sf ../../../xen/include/public include/xen
gcc -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format -fno-stack-
protector -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -g -
mfixed-range=f2-f5,f12-f15,f32-f127 -mconstant-gp -O2 -I../../extras/mini-os/
include -D__XEN_INTERFACE_VERSION__=0x00030205  -I../../extras/mini-os/include/
ia64 -c kernel.c -o kernel.o
cc1: warnings being treated as errors
kernel.c: In function 'kbdfront_thread':
kernel.c:344: warning: 'z' may be used uninitialized in this function
make: *** [kernel.o] Error 1

Best Regards,

Akio Takebe

extras/mini-os/kernel.c +1 -1
diff -r edfb58ca4d96 extras/mini-os/kernel.c
@@ -341,7 +341,7 @@ static void kbdfront_thread(void *p)
 {
     struct kbdfront_dev *kbd_dev;
     DEFINE_WAIT(w);
-    int x = WIDTH / 2, y = HEIGHT / 2, z;
+    int x = WIDTH / 2, y = HEIGHT / 2, z = 0;
 
     kbd_dev = init_kbdfront(NULL, 1);
     if (!kbd_dev)

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