This is the mail archive of the ecos-bugs@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug 1001504] New: Fix CYG_REFERENCE_OBJECT macro, addCYGBLD_ATTRIB_UNUSED macro


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]