Skip to contentSkip to conversation

xen/arch/x86/vm-io passing unintialized variable to function

PATCH New Jerone Young 1 participant 1 message Jul 5, 2005 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arch/x86/vm-io passing unintialized variable to function

Oh gcc4 ....how you complain soo. This patch fixes compile with gcc4 where an unintialized variable is used in a function.

arch/x86/vmx_io.c 2005-07-05 16:44:20.000000000 -0500 renamed from arch/x86/vmx_io.c.old 2005-07-05 16:44:01.000000000 -0500 +1 -1
@@ -621,7 +621,7 @@ static inline int irq_masked(unsigned lo
 
 void vmx_intr_assist(struct vcpu *v)
 {
-    int intr_type;
+    int intr_type = 0;
     int highest_vector = find_highest_pending_irq(v, &intr_type);
     unsigned long intr_fields, eflags, interruptibility, cpu_exec_control;