diff --git a/sys/kern/subr_rmap.c b/sys/kern/subr_rmap.c index ea1cbdc1843d..1de80be280e7 100644 --- a/sys/kern/subr_rmap.c +++ b/sys/kern/subr_rmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: subr_rmap.c,v 1.14 1998/08/04 04:03:15 perry Exp $ */ +/* $NetBSD: subr_rmap.c,v 1.15 1998/08/18 06:26:30 thorpej Exp $ */ /* * Copyright (C) 1992, 1994 Wolfgang Solfrank. @@ -139,13 +139,18 @@ rmfree(mp, size, addr) { struct mapent *ep, *fp; +#ifdef __GNUC__ + /* XXX VERY BOGUS -Wuninitialized warning */ + ep = NULL; +#endif + /* first check arguments */ if (size <= 0 || addr <= 0) panic("rmfree %s", mp->m_name); - + while (1) { fp = 0; - + for (ep = (struct mapent *)mp + 1; ep < mp->m_limit; ep++) { if (!ep->m_addr) { /* unused slots terminate the list */