From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] xen/arch/x86/vm-io passing unintialized variable to function Date: Tue, 5 Jul 2005 16:47:27 -0500 Message-ID: <9f50a7a00507051447383d33f3@mail.gmail.com> Reply-To: Jerone Young Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Oh gcc4 ....how you complain soo. This patch fixes compile with gcc4 where an unintialized variable is used in a function. Signed-off-by: Jerone Young --- xen/arch/x86/vmx_io.c.old 2005-07-05 16:44:01.000000000 -0500 +++ xen/arch/x86/vmx_io.c 2005-07-05 16:44:20.000000000 -0500 @@ -621,7 +621,7 @@ static inline int irq_masked(unsigned lo void vmx_intr_assist(struct vcpu *v) { - int intr_type; + int intr_type =3D 0; int highest_vector =3D find_highest_pending_irq(v, &intr_type); unsigned long intr_fields, eflags, interruptibility, cpu_exec_control;