From owner-cvs-sys Thu Oct 3 00:09:28 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA07343 for cvs-sys-outgoing; Thu, 3 Oct 1996 00:09:28 -0700 (PDT) Received: from spinner.DIALix.COM (root@spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id AAA07329; Thu, 3 Oct 1996 00:09:21 -0700 (PDT) Received: from spinner.DIALix.COM (peter@localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.0/8.8.0) with ESMTP id PAA03448; Thu, 3 Oct 1996 15:08:58 +0800 (WST) Message-Id: <199610030708.PAA03448@spinner.DIALix.COM> To: "Jordan K. Hubbard" 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 In-reply-to: Your message of "Thu, 03 Oct 1996 00:01:40 MST." <8024.844326100@time.cdrom.com> Date: Thu, 03 Oct 1996 15:08:58 +0800 From: Peter Wemm Sender: owner-cvs-sys@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk "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 .. 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