From 32874dc0b7d46bb7c954b0efac28169881fa2c1a Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 25 Oct 2009 22:00:50 +0100 Subject: Fix warning * i386/intel/pmap.c (i): Declare only when [NCPUS > 1]. --- i386/intel/pmap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'i386/intel') diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index f6cbead..d1a7c47 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -693,7 +693,9 @@ void pmap_init() register long npages; vm_offset_t addr; register vm_size_t s; +#if NCPUS > 1 int i; +#endif /* NCPUS > 1 */ /* * Allocate memory for the pv_head_table and its lock bits, -- cgit v1.2.3