Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cross-build failure on i386 in sh/init.c



On Wed, Feb 27, 2008 at 12:23:52PM -0700, Anthony Martinez wrote:
> I'm cross-building -CURRENT on an Ubuntu Linux host. I updated at
...
> The failure is as follows:
> #   compile  sh/init.o
> /home/pi/netbsd/tooldir.i386/bin/i386--netbsdelf-gcc -O2  -Wall 
> -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare 
> -Wno-traditional -Wreturn-type -Wswitch -Wshadow -Wcast-qual -Wwrite-strings 
> -Wextra -Wno-unused-parameter -std=gnu99  -Werror   -DSHELL -I. 
> -I/home/pi/netbsd/src/bin/sh -nostdinc -isystem 
> /home/pi/netbsd/dest.i386/usr/include   -c    init.c
> cc1: warnings being treated as errors
> init.c: In function 'reset':
> init.c:235: warning: function declaration isn't a prototype
> init.c:235: warning: declaration of 'initshellproc' shadows a global 
> declaration
> /home/pi/netbsd/src/bin/sh/init.h:39: warning: shadowed declaration is here

It looks as though the script that generates init.c has missed a line out.
So line 235 is seen as part of reset() instead of a new function.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index