Subject: kern/8513: Compile error in mac68k/obio/
To: None <>
From: None <>
List: netbsd-bugs
Date: 09/28/1999 20:05:45
>Number:         8513
>Category:       kern
>Synopsis:       Compile error in mac68k/obio/
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 28 20:05:00 1999
>Originator:     Ben Mesander
>Release:        1.4.1
NetBSD oldschool 1.4.1 NetBSD 1.4.1 (GENERIC) #0: Wed Aug 11 04:56:57 CDT 1999     fredb@corwin.home:/usr/src/sys/arch/mac68k/compile/GENERIC mac68k

When compiling 1.4.1 kernel with options DIAGNOSTIC disabled in the kernel config options, one gets the following error:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -msoft-float -I. -I../../../../arch -I../../../.. -nostdinc -DHZ="0x3c" -DM68030 -DMAXUSERS=8 -D_KERNEL -Dmac68k  -c ../../../../arch/mac68k/obio/iwm_fd.c
cc1: warnings being treated as errors
../../../../arch/mac68k/obio/iwm_fd.c: In function `fdstart_Exit':
../../../../arch/mac68k/obio/iwm_fd.c:1641: warning: unused variable `i'
*** Error code 1

disable "DIAGNOSTIC" option, and compile 1.4.1 kernel sources.

in iwm_fd.c, function fdstart_Exit, wrap declaration of "int i;" with