[Bug 1265] New: Compilation warning on index parameter in object.h and inconsistenf declaration of sparc_enable_interrupts in cpu.h
rtems-bugs at rtems.org
rtems-bugs at rtems.org
Tue Nov 6 08:58:27 UTC 2007
http://www.rtems.org/bugzilla/show_bug.cgi?id=1265
Summary: Compilation warning on index parameter in object.h and
inconsistenf declaration of sparc_enable_interrupts in
cpu.h
Product: RTEMS
Version: 4.6
Platform: sparc
OS/Version: RTEMS
Status: NEW
Severity: minor
Priority: P1
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: jacques.seronievivien at astrium.eads.net
When compiling a file including rtems.h and strings.h, a compilation warning
indicates that index parameter of _Objects_Allocate_by_index (defined in
object.h) shadows a global decalration (of index function in string.h). To
suppress this warning message, index parameter in file
rtems/cpukit/score/include/rtems/score/object.h can be renamed to indexObj.
Also in file .\cpukit\score\cpu\sparc\rtems\score\cpu.h, function
sparc_enable_interrupts is declared without parameter whereas it is always
invoked with a _level parameter. Even if in function implementation, parameter
is not used, it would be nicer to declare function as "extern void
sparc_enable_interrupts(unsigned int _level);"
--
Configure bugmail: http://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the bugs
mailing list