diff options
author | 1997-03-01 21:31:11 +0000 | |
---|---|---|
committer | 1997-03-01 21:31:11 +0000 | |
commit | 1c415f819df06d3ddc26d07d3b0758dae704d61d (patch) | |
tree | fc717cc2685900812c5541f54b428b30250a84ff /sys/kern/kern_malloc.c | |
parent | Allow building of kernels that do not keep malloc statistics via (diff) | |
download | wireguard-openbsd-1c415f819df06d3ddc26d07d3b0758dae704d61d.tar.xz wireguard-openbsd-1c415f819df06d3ddc26d07d3b0758dae704d61d.zip |
prevent warning about unused variable when NO_KMEMSTATS is in effect
Diffstat (limited to 'sys/kern/kern_malloc.c')
-rw-r--r-- | sys/kern/kern_malloc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |