Subject: kern/21529: [PATCH] unused variable in src/sys/dev/dksubr.c
To: None <>
From: None <>
List: netbsd-bugs
Date: 05/11/2003 17:27:29
>Number:         21529
>Category:       kern
>Synopsis:       [PATCH] unused variable in src/sys/dev/dksubr.c
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 11 08:28:00 UTC 2003
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 1.6T
NetBSD 1.6T
	Kernel build was failed with "pseudo-device cgd".
	This is error log:
/home/t/i386/bin/i386--netbsdelf-gcc  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Di386 -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/src/sys/dev/dksubr.c
cc1: warnings being treated as errors
/usr/src/sys/dev/dksubr.c: In function `dk_strategy':
/usr/src/sys/dev/dksubr.c:171: warning: unused variable `lp'
*** Error code 1
	make kernel with "pseudo-device cgd"
Index: dksubr.c
RCS file: /cvsroot/src/sys/dev/dksubr.c,v
retrieving revision 1.6
diff -u -r1.6 dksubr.c
--- dksubr.c	2003/05/10 23:12:43	1.6
+++ dksubr.c	2003/05/11 08:20:03
@@ -168,7 +168,6 @@
 dk_strategy(struct dk_intf *di, struct dk_softc *dksc, struct buf *bp)
-	struct	disklabel *lp = dksc->sc_dkdev.dk_label;
 	int	s;
 	int	wlabel;