Subject: Problems building current
To: NetBSD port-atari mailing list <port-atari@netbsd.org>
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
List: port-atari
Date: 09/10/1998 15:17:11
I've been trying to build -current on the Atari.  The build stops in
sys/arch/atari/stand/libsa with :

cc -O -fomit-frame-pointer -Wall  -Werror  -DSTANDALONE -I- -I/usr/src/sys/arch/atari/stand/libsa -I/usr/src/sys/lib/libkern -I/usr/src/sys/lib/libsa -I/usr/src/sys -c /usr/src/sys/lib/libkern/bzero.c
cc1: warnings being treated as errors
/usr/src/sys/arch/atari/stand/libsa/../../../../lib/libkern/memset.c: In function `bzero':
/usr/src/sys/arch/atari/stand/libsa/../../../../lib/libkern/memset.c:83: warning: unused variable `c'
*** Error code 1

Line 83 in sys/lib/libkern/memset.c is :

	u_int c;

The only references to 'c' in the function (lines 109-117) are bounded by
'#ifndef BZERO'.

I also looked at the sun 3 port to see what happens there.  The makefile
for sys/arch/sun3/stand/libsa doesn't pass '-Wall', so compiles bzero.c OK.

I presume the fix for this is to wrap line 83 with '#ifndef BZERO'.  However,
is this covering up a different problem?

Thanks,

J

-- 
    1024/55A5BC19        0F 3F 62 56 18 10 8B 84  43 8F F4 94 93 37 76 AA

S.E.P.