Subject: Re: Build fails in dev/acpi/pckbdc_acpi.c
To: None <current-users@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: current-users
Date: 10/27/2003 06:16:08
In article <20031027051818.GA11735@bjan.net>,
Bruce J.A. Nourish <bjan+current-users@bjan.net> wrote:
>Hey everyone,
>
>I needed the following patch to compile current as of an hour ago;
>otherwise, gcc would fail with "X could be used uninitialized in this
>function" warnings.

Thanks, fixed

christos
>
>Index: pckbc_acpi.c
>===================================================================
>RCS file: /cvsroot/src/sys/dev/acpi/pckbc_acpi.c,v
>retrieving revision 1.4
>diff -u -r1.4 pckbc_acpi.c
>--- pckbc_acpi.c	2003/01/27 19:18:46	1.4
>+++ pckbc_acpi.c	2003/10/27 05:18:10
>@@ -237,7 +237,7 @@
> 	struct pckbc_acpi_softc *psc;
> 	isa_chipset_tag_t ic = NULL;
> 	void *rv = NULL;
>-	int irq, ist;
>+	int irq = 0, ist = 0;
> 	int i;
> 
> 	/*
>
>-- 
>Bruce J.A. Nourish <bjan+public@bjan.net> http://bjan.net