This is the mail archive of the
ecos-bugs@sourceware.org
mailing list for the eCos project.
[Bug 1001504] New: Fix CYG_REFERENCE_OBJECT macro, addCYGBLD_ATTRIB_UNUSED macro
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-bugs at ecos dot sourceware dot org
- Date: Fri, 2 Mar 2012 16:42:33 +0000
- Subject: [Bug 1001504] New: Fix CYG_REFERENCE_OBJECT macro, addCYGBLD_ATTRIB_UNUSED macro
- Auto-submitted: auto-generated
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 on the CC list for the bug.