Subject: kern/3946: kern_subr.c, usused variables (i)
To: None <gnats-bugs@gnats.netbsd.org>
From: Erik Bertelsen <erik@erik-be.uni-c.dk>
List: netbsd-bugs
Date: 08/06/1997 17:52:41
>Number:         3946
>Category:       kern
>Synopsis:       kern_subr.c, usused variables (i)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug  6 07:05:03 1997
>Last-Modified:
>Originator:     Erik Bertelsen
>Organization:
	
>Release:        NetBSD-current 6 Aug. 1997
>Environment:
	
System: NetBSD erik-be.uni-c.dk 1.2G NetBSD 1.2G (ERIKBE) #45: Wed Aug 6 17:39:15 MEST 1997 erik@erik-be.uni-c.dk:/sw/NetBSD/src/sys/arch/i386/compile/ERIKBE i386


>Description:
	Two functions has a variable i which may be unused and therefore
	cause compilation aborts.
>How-To-Repeat:
	
>Fix:
Index: kern_subr.c
===================================================================
RCS file: /sw/cvs-base/src/sys/kern/kern_subr.c,v
retrieving revision 1.1.1.11
diff -r1.1.1.11 kern_subr.c
765a766
> #ifdef MEMORY_DISK_HOOKS
766a768
> #endif
800c802,805
<       int majdev, part, i;
---
>       int majdev, part;
> #ifdef MEMORY_DISK_HOOKS
>       int i;
> #endif

>Audit-Trail:
>Unformatted: