Subject: Build fails in dev/acpi/pckbdc_acpi.c
To: None <current-users@netbsd.org>
From: Bruce J.A. Nourish <bjan+current-users@bjan.net>
List: current-users
Date: 10/26/2003 22:18:18
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.
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