From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5231 invoked by alias); 31 Jul 2012 19:06:55 -0000 Received: (qmail 5221 invoked by uid 22791); 31 Jul 2012 19:06:54 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_SOFTFAIL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e9.ny.us.ibm.com (HELO e9.ny.us.ibm.com) (32.97.182.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Jul 2012 19:06:31 +0000 Received: from /spool/local by e9.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 31 Jul 2012 15:06:29 -0400 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e9.ny.us.ibm.com (192.168.1.109) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 31 Jul 2012 15:06:27 -0400 Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 2E9DAD40224 for ; Tue, 31 Jul 2012 14:42:15 -0400 (EDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6VIeveh369496 for ; Tue, 31 Jul 2012 14:40:57 -0400 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6VIddwO021120 for ; Tue, 31 Jul 2012 12:39:44 -0600 Received: from otta (vorma.rchland.ibm.com [9.10.86.174]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id q6VIdZ9E020035; Tue, 31 Jul 2012 12:39:36 -0600 Date: Tue, 31 Jul 2012 19:06:00 -0000 From: Peter Bergner To: Perry Smith Cc: nick clifton , binutils@sourceware.org Subject: Re: Error when building on AIX Message-Id: <20120731133931.55bfc426bd74463774b18963@vnet.ibm.com> In-Reply-To: <4C5F6188-A242-4E2A-BD1E-6469ABCBE03F@gmail.com> References: <9FB11EBB-6CE1-409A-B8B0-7F4726E6C8D8@gmail.com> <50178152.2080900@redhat.com> <4C5F6188-A242-4E2A-BD1E-6469ABCBE03F@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12073119-7182-0000-0000-0000021F2812 X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2012-07/txt/msg00325.txt.bz2 On Tue, 31 Jul 2012 10:16:36 -0500 Perry Smith wrote: > I also tried assigning it to a local variable which did not work either. I think you'll still get a unused warning/error if the local isn't used either. In that case, I think you can mark the local variable with the unused attribute and that should (famous last words) solve it for you. Like: int __attribute__ ((__unused__)) dummy; ... dummy = putc (......); Peter