From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20045 invoked by alias); 2 Mar 2012 16:42:50 -0000 Received: (qmail 20026 invoked by uid 22791); 2 Mar 2012 16:42:48 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from hagrid.ecoscentric.com (HELO mail.ecoscentric.com) (212.13.207.197) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Mar 2012 16:42:36 +0000 Received: by mail.ecoscentric.com (Postfix, from userid 48) id 1381F2FB0827; Fri, 2 Mar 2012 16:42:35 +0000 (GMT) From: bugzilla-daemon@bugs.ecos.sourceware.org To: unassigned@bugs.ecos.sourceware.org Subject: [Bug 1001504] New: Fix CYG_REFERENCE_OBJECT macro, add CYGBLD_ATTRIB_UNUSED macro X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: eCos X-Bugzilla-Component: Other X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: grant.b.edwards@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: low X-Bugzilla-Assigned-To: unassigned@bugs.ecos.sourceware.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://bugs.ecos.sourceware.org/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Fri, 02 Mar 2012 16:42:00 -0000 Mailing-List: contact ecos-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-bugs-owner@sourceware.org X-SW-Source: 2012/txt/msg00387.txt.bz2 Please do not reply to this email. Use the web interface provided at: http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001504 Summary: Fix CYG_REFERENCE_OBJECT macro, add CYGBLD_ATTRIB_UNUSED macro Product: eCos Version: CVS Platform: All OS/Version: Other Status: NEW Severity: enhancement Priority: low Component: Other AssignedTo: unassigned@bugs.ecos.sourceware.org ReportedBy: grant.b.edwards@gmail.com CC: ecos-bugs@ecos.sourceware.org Class: Advice Request With gcc 4.6, the "used" attribute only applies to functions, so to fix compiler warnings conditionally remove it from the CYG_REFERENCE_OBJECT() macro for gcc >= 4.6. Define a new CYGBLD_ATTRIB_UNUSED attribute macro that we can use to tell the compiler that we already know that certain variables may be unused or set but never referenced (generally when asserts or debugging are turned off at build-time). -- Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.