Subject: kern/14638: ufs/ufs/ufs_lookup.c:ufs_dirremove() does not compile without FFS_EI
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 11/19/2001 19:17:19
>Number: 14638
>Category: kern
>Synopsis: ufs/ufs/ufs_lookup.c:ufs_dirremove() does not compile without FFS_EI
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 19 02:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Jun-ichiro itojun Hagino
>Release: 1.5Y
>Organization:
itojun.org
>Environment:
System: NetBSD starfruit.itojun.org 1.5Y NetBSD 1.5Y (STARFRUIT) #: Mon Nov 19 16:13:14 JST 2001 itojun@starfruit.itojun.org:/usr/home/itojun/NetBSD/src/sys/arch/i386/compile/STARFRUIT i386
Architecture: i386
Machine: i386
>Description:
sys/ufs/ufs/ufs_lookup.c:ufs_dirremove() does not compile without
"FFS_EI" kernel compilation option, due to -Wunused warning for
one of the variables.
>How-To-Repeat:
(with i386 GENERIC kernel configuration file as of today)
# make
cc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Di386 -c /home/itojun/NetBSD/src/sys/arch/i386/compile/GENERIC/../../../../ufs/ufs/ufs_lookup.c
cc1: warnings being treated as errors
/home/itojun/NetBSD/src/sys/arch/i386/compile/GENERIC/../../../../ufs/ufs/ufs_lookup.c: In function `ufs_dirremove':
/home/itojun/NetBSD/src/sys/arch/i386/compile/GENERIC/../../../../ufs/ufs/ufs_lookup.c:943: warning: unused variable `needswap'
*** Error code 1
Stop.
make: stopped in /home/itojun/NetBSD/src/sys/arch/i386/compile/GENERIC
>Fix:
1. enable options FFS_EI
2. remove -Wunused from kernel makefile
3. have some #pragma?
>Release-Note:
>Audit-Trail:
>Unformatted: