Subject: A minor build failure after patching 20000527-yield
To: None <tech-kern@netbsd.org>
From: Chris Pinnock <C.J.E.Pinnock@qmw.ac.uk>
List: tech-kern
Date: 05/30/2000 13:19:39
Hi,

After applying the patch 20000527-yield I get a warning whilst compiling 
the kernel:

cc  -O2 -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Wno-main -mno-fpu -I. -I../../../../arch -I../../../.. -nostdinc -DSUN4C -DBLINK -DLKM -DNS -DMAXUSERS=32 -D_KERNEL  -c ../../../../kern/kern_subr.c
cc1: warnings being treated as errors
../../../../kern/kern_subr.c: In function `uiomove':
../../../../kern/kern_subr.c:128: warning: unused variable `p'
*** Error code 1

Stop.

It would appear that the variable p is only used in a section which is 
compiled in if and only if DIAGNOSTIC is defined; which isn't defined in my 
config file.

It seems that this stuff is added in in the 20000527-yield patch. 
(Looking at the patch I'm not really sure if adding the variable
p in actually does anything new inside the relevant DIAGNOSTIC big 
except replace uio->uio_procp in one instance, but then my C really isn't up 
to much.)

Not the world's worst error though...

best wishes,
-- 
Chris Pinnock
School of Mathematical Sciences,	Tel: +44 (0)20 7882 5448 
Queen Mary & Westfield College,		Fax: +44 (0)20 8981 9587
London E1 4NS, UK.			C.J.E.Pinnock@qmw.ac.uk