From dev-return-13759-apmail-apr-dev-archive=apr.apache.org@apr.apache.org Mon Feb 07 07:01:43 2005 Return-Path: Delivered-To: apmail-apr-dev-archive@www.apache.org Received: (qmail 29907 invoked from network); 7 Feb 2005 07:01:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 7 Feb 2005 07:01:43 -0000 Received: (qmail 65629 invoked by uid 500); 7 Feb 2005 07:01:42 -0000 Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 65590 invoked by uid 500); 7 Feb 2005 07:01:41 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 65577 invoked by uid 99); 7 Feb 2005 07:01:41 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of apr-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 06 Feb 2005 23:01:39 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Cy2sb-0001z2-0c for dev@apr.apache.org; Mon, 07 Feb 2005 08:00:17 +0100 Received: from 12-202-97-178.client.insightbb.com ([12.202.97.178]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 08:00:17 +0100 Received: from eddie by 12-202-97-178.client.insightbb.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 07 Feb 2005 08:00:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@apr.apache.org From: Edward Rudd Subject: Re: idea for and addition to the APR Date: Mon, 07 Feb 2005 01:52:56 -0500 Organization: Me Organized? Lines: 31 Message-ID: References: <1107638825.658.70.camel@genius2.i.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 12-202-97-178.client.insightbb.com User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: apr-dev@m.gmane.org X-MailScanner-To: dev@apr.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Sat, 05 Feb 2005 22:27:05 +0100, Michal Mertl wrote: > Hello > [snip] > > In FreeBSD I use __unused which is converted by /usr/include/sys/cdefs.h > to __attribute__((__unused__)) for recent version of gcc. I use __attribute__((unused)) for a function to be unused in GCC. As I like to compile my code in -Werror (and make sure I remember to turn it off when making distribution tarballs) [snip] > Did anyone thought about adding something like it to the APR? Or did I > just overlook it? The name could be APR_MARK_UNUSED or some such. > Implementation should be trivial - either we know how a platform does it > or we would define it out. I'm not really sure if it's needed, as I only run high compilation warning (-Werror) when I develop the code, once I distribute I turn down the error level (for autoconf not enabling --enable-maintainer-mode) so that these issues don't crop up.. which so far I haven't seen them as I have the __attribute__((__unused__)) set on a few of my modules and haven't had any complaints thus far. Edward Rudd http://www.outoforder.cc/