#1265 closed defect (fixed)
Compilation warning on index parameter in object.h and inconsistenf declaration of sparc_enable_interrupts in cpu.h
Reported by: | jacques.seronievivien | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | highest | Milestone: | 4.9 |
Component: | score | Version: | 4.6 |
Severity: | minor | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
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);"
Change History (2)
comment:1 Changed on 08/04/08 at 19:00:26 by Joel Sherrill
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed on 09/01/08 at 08:25:41 by jacques.seronievivien
Note: See
TracTickets for help on using
tickets.
Closing as fixed in all branches