From: kstailey Date: Sat, 1 Mar 1997 21:31:11 +0000 (+0000) Subject: prevent warning about unused variable when NO_KMEMSTATS is in effect X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1c415f819df06d3ddc26d07d3b0758dae704d61d;p=openbsd prevent warning about unused variable when NO_KMEMSTATS is in effect --- diff --git a/sys/kern/kern_malloc.c b/sys/kern/kern_malloc.c index dcbbcc32d3c..68bef8801c5 100644 --- a/sys/kern/kern_malloc.c +++ b/sys/kern/kern_malloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_malloc.c,v 1.6 1996/06/20 10:53:06 deraadt Exp $ */ +/* $OpenBSD: kern_malloc.c,v 1.7 1997/03/01 21:31:11 kstailey Exp $ */ /* $NetBSD: kern_malloc.c,v 1.15.4.2 1996/06/13 17:10:56 cgd Exp $ */ /* @@ -375,7 +375,9 @@ free(addr, type) void kmeminit() { +#ifdef KMEMSTATS register long indx; +#endif int npg; #if ((MAXALLOCSAVE & (MAXALLOCSAVE - 1)) != 0)