Date: Thu, 03 Oct 1996 15:08:58 +0800 From: Peter Wemm <peter@spinner.DIALix.COM> To: "Jordan K. Hubbard" <jkh@time.cdrom.com> Cc: sos@FreeBSD.org, jkh@freefall.freebsd.org (Jordan K. Hubbard), CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-sys@freefall.freebsd.org Subject: Re: cvs commit: src/sys/i386/isa syscons.c Message-ID: <199610030708.PAA03448@spinner.DIALix.COM> In-Reply-To: Your message of "Thu, 03 Oct 1996 00:01:40 MST." <8024.844326100@time.cdrom.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Jordan K. Hubbard" wrote: > > or (in ANSI-style) > > void > > func(int x __unused, char *y __unused) > > Hmmm. I don't remember __unused from my last reading of the ANSI > spec, and if this is a gcc-ism then using it anywhere will cause Bruce > to squawk at you about making it harder to use a non-gcc compiler in > general principle. :-) > > Jordan Check <sys/cdefs.h>.. For gcc-2.7.x and above, it's a #define __unused __attribute__((__unused__)) For everything else, it does nothing. It should not be a portability issue, since we compile the kernel with -Wunused on gcc, and it's telling us exactly what we asked for.. Unused variables.. Cheers, -Peter
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610030708.PAA03448>