From 1c415f819df06d3ddc26d07d3b0758dae704d61d Mon Sep 17 00:00:00 2001 From: kstailey Date: Sat, 1 Mar 1997 21:31:11 +0000 Subject: [PATCH] prevent warning about unused variable when NO_KMEMSTATS is in effect --- sys/kern/kern_malloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1