Subject: kern/3949: Can't compile kern_sub.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <arndt@handy.uni-koblenz.de>
List: netbsd-bugs
Date: 08/07/1997 10:54:35
>Number: 3949
>Category: kern
>Synopsis: unused variable i
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people (Kernel Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 7 02:05:01 1997
>Last-Modified:
>Originator: Uwe Arndt
>Organization:
University Koblenz / CC
>Release: sup from Aug. 7 9.40 MET
>Environment:
i386
System: NetBSD handy.uni-koblenz.de 1.2G NetBSD 1.2G (UWES) #0: Mon Jul 21 18:42:35 CEST 1997 root@handy.uni-koblenz.de:/usr/src/sys/arch/i386/compile/UWES i386
>Description:
make kernel
>How-To-Repeat:
do not define file-system mfs
>Fix:
small patch following
*** /homes/NetBSD/src/sys/kern/kern_subr.c Wed Aug 6 05:21:56 1997
--- ../../../../kern/kern_subr.c Thu Aug 7 10:23:20 1997
***************
*** 763,769 ****
--- 763,771 ----
int isdump;
{
struct device *dv;
+ #ifdef MEMORY_DISK_HOOKS
int i;
+ #endif
if ((dv = parsedisk(str, len, defpart, nam2blk, devp)) == NULL) {
printf("use one of:");
***************
*** 797,803 ****
{
struct device *dv;
char *cp, c;
! int majdev, part, i;
if (len == 0)
return (NULL);
--- 799,808 ----
{
struct device *dv;
char *cp, c;
! int majdev, part;
! #ifdef MEMORY_DISK_HOOKS
! int i;
! #endif
if (len == 0)
return (NULL);
>Audit-Trail:
>Unformatted: