Date: Sat, 27 Jan 2001 13:43:41 +0200 From: Peter Pentchev <roam@orbitel.bg> To: Will Andrews <will@physics.purdue.edu> Cc: Mark Murray <mark@grondar.za>, audit@FreeBSD.ORG Subject: Re: cut(1) patch Message-ID: <20010127134341.A328@ringworld.oblivion.bg> In-Reply-To: <20010127042518.A39246@puck.firepipe.net>; from will@physics.purdue.edu on Sat, Jan 27, 2001 at 04:25:18AM -0500 References: <20010127020528.N2071@puck.firepipe.net> <200101270752.f0R7qKW12971@gratis.grondar.za> <20010127042518.A39246@puck.firepipe.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010127134341.A328>
