From owner-freebsd-audit Sat Jan 27 3:46:40 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (pool212-tch-1.Sofia.0rbitel.net [212.95.170.212]) by hub.freebsd.org (Postfix) with SMTP id 2C53237B400 for ; Sat, 27 Jan 2001 03:46:02 -0800 (PST) Received: (qmail 1847 invoked by uid 1000); 27 Jan 2001 11:43:42 -0000 Date: Sat, 27 Jan 2001 13:43:41 +0200 From: Peter Pentchev To: Will Andrews Cc: Mark Murray , audit@FreeBSD.ORG Subject: Re: cut(1) patch Message-ID: <20010127134341.A328@ringworld.oblivion.bg> Mail-Followup-To: Will Andrews , Mark Murray , audit@FreeBSD.ORG References: <20010127020528.N2071@puck.firepipe.net> <200101270752.f0R7qKW12971@gratis.grondar.za> <20010127042518.A39246@puck.firepipe.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010127042518.A39246@puck.firepipe.net>; from will@physics.purdue.edu on Sat, Jan 27, 2001 at 04:25:18AM -0500 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jan 27, 2001 at 04:25:18AM -0500, Will Andrews wrote: > On Sat, Jan 27, 2001 at 09:52:34AM +0200, Mark Murray wrote: > > What is > > > > + if (fname) {} > > > > for?? > > Best way I could think of to eliminate "fname not used" issued by > BDECFLAGS. Probably a tad lame though.. I usually eliminate such warnings by.. #ifdef __GNUC__ #define __UNUS __attribute__((unused)) #else #define __UNUS #endif int func(int foo, char *bar __UNUS) { ... } G'luck, Peter -- This sentence would be seven words long if it were six words shorter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message