Date: Sat, 27 Jan 2001 16:07:10 +0200 From: Mark Murray <mark@grondar.za> To: Peter Pentchev <roam@orbitel.bg> Cc: Will Andrews <will@physics.purdue.edu>, audit@FreeBSD.ORG Subject: Re: cut(1) patch Message-ID: <200101271407.f0RE6wW14099@gratis.grondar.za> In-Reply-To: <20010127134341.A328@ringworld.oblivion.bg> ; from Peter Pentchev <roam@orbitel.bg> "Sat, 27 Jan 2001 13:43:41 %2B0200." References: <20010127134341.A328@ringworld.oblivion.bg>
next in thread | previous in thread | raw e-mail | index | archive | help
> I usually eliminate such warnings by..
>
> #ifdef __GNUC__
> #define __UNUS __attribute__((unused))
> #else
> #define __UNUS
> #endif
>
> int func(int foo, char *bar __UNUS) { ... }
I really like this! I'm not sure I like the macro (but I can live with
it). Next question - I'd like to put this somewhere where you don't have
to keep redefining it.
Same header that currently has __P()?
sys/cdefs.h seems to be a good one.
M
--
Mark Murray
Warning: this .sig is umop ap!sdn
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?200101271407.f0RE6wW14099>
