From owner-freebsd-audit Sat Jan 27 6: 7:56 2001 Delivered-To: freebsd-audit@freebsd.org Received: from gratis.grondar.za (grouter.grondar.za [196.7.18.65]) by hub.freebsd.org (Postfix) with ESMTP id 82D9A37B400 for ; Sat, 27 Jan 2001 06:07:36 -0800 (PST) Received: from grondar.za (root@gratis.grondar.za [196.7.18.133]) by gratis.grondar.za (8.11.1/8.11.1) with ESMTP id f0RE6wW14099; Sat, 27 Jan 2001 16:07:01 +0200 (SAST) (envelope-from mark@grondar.za) Message-Id: <200101271407.f0RE6wW14099@gratis.grondar.za> To: Peter Pentchev Cc: Will Andrews , audit@FreeBSD.ORG Subject: Re: cut(1) patch References: <20010127134341.A328@ringworld.oblivion.bg> In-Reply-To: <20010127134341.A328@ringworld.oblivion.bg> ; from Peter Pentchev "Sat, 27 Jan 2001 13:43:41 +0200." Date: Sat, 27 Jan 2001 16:07:10 +0200 From: Mark Murray Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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