From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Re: Building GCC From: "Russ Cox" Date: Thu, 24 Jan 2008 16:52:01 -0500 In-Reply-To: <4E18292A-9BED-4167-ABAE-53C71F6B4B13@mac.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20080124215156.A1F931E8C1C@holo.morphisms.net> Topicbox-Message-UUID: 375eea1c-ead3-11e9-9d60-3106f5b1d025 > But in my version of hoc, you'll see > > #ifdef PLAN9 > USED(something-or-other-because-this-is-a-signal-handler-and-I-do- > not-care-about-that-necessary-argument-as-this-handler-just-calls- > exit-or-execerror); > #endif > > and that program uses pcc. Is there a command line option to turn > that off? I won't need it right now, since my hoc code is lost to If you have a function that takes an argument you don't need to use, then simply delete the name of the argument. Instead of void nop(int s) { } you write void nop(int) { } Or you insert USED(s). Or you disable all warnings with -w. Your choice. All this is in /sys/doc/comp.ps Russ