Subject: Re: CVS commit: src/usr.bin/make
To: matthew green <mrg@eterna.com.au>
From: James Chacon <jmc@netbsd.org>
List: tech-toolchain
Date: 07/01/2004 11:33:16
On Thu, Jul 01, 2004 at 05:12:19PM +1000, matthew green wrote:
>
> >Log Message:
> >Add some checks for gcc around a few function declarations and note the
> >unused variables. Also fix a few other warnings that PR#22118 shows when
> >trying to compile bmake on non-NetBSD hosts
>
> This seems a rather ugly solution. The FreeBSD cdefs.h has things like
>
> freebsd? :-)
>
> phat-bass ~> grep __unused /usr/include/sys/cdefs.h
> #define __unused __attribute__((__unused__))
> #define __unused /* delete */
> phat-bass ~> uname -s
> NetBSD
> phat-bass ~>
Since the point was to also make this reasonably portable I'll add the equiv
of this to make.h to define it if it's not already defined.
James