[Bug 1742] New: Warnings in system headers

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Feb 23 11:00:29 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1742

           Summary: Warnings in system headers
           Product: Tools
           Version: unspecified
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Newlib
        AssignedTo: ralf.corsepius at rtems.org
        ReportedBy: sebastian.huber at embedded-brains.de


Adding -Wsystem-headers to the CFLAGS reveals the following warnings:

/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/cdefs.h:53:0:
warning: "__P" redefined
../../../../../sis/lib/include/rtems/bsd/sys/cdefs.h:61:0: note: this is the
location of the previous definition
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/cdefs.h:88:0:
warning: "__weak_reference" redefined
../../../../../sis/lib/include/rtems/bsd/sys/cdefs.h:149:0: note: this is the
location of the previous definition
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/cdefs.h:91:0:
warning: "__warn_references" redefined
../../../../../sis/lib/include/rtems/bsd/sys/cdefs.h:152:0: note: this is the
location of the previous definition

/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:393:0:
warning: "PTHREAD_MUTEX_NORMAL" redefined
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:310:0:
note: this is the location of the previous definition
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:394:0:
warning: "PTHREAD_MUTEX_RECURSIVE" redefined
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:325:0:
note: this is the location of the previous definition
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:396:0:
warning: "PTHREAD_MUTEX_DEFAULT" redefined
/opt/rtems-4.11/lib/gcc/sparc-rtems4.11/4.5.2/../../../../sparc-rtems4.11/include/sys/types.h:332:0:
note: this is the location of the previous definition

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list