[Bug 1991] New: cpukit/rtems/src/attr.c:29: warning: no previous prototype for 'rtems_interrupt_level_attribute'
bugzilla-daemon at rtems.org
bugzilla-daemon at rtems.org
Tue Dec 13 13:43:15 UTC 2011
https://www.rtems.org/bugzilla/show_bug.cgi?id=1991
Summary: cpukit/rtems/src/attr.c:29: warning: no previous
prototype for 'rtems_interrupt_level_attribute'
Product: RTEMS
Version: HEAD
Platform: All
OS/Version: RTEMS
Status: NEW
Severity: normal
Priority: P3
Component: cpukit
AssignedTo: joel.sherrill at oarcorp.com
ReportedBy: ralf.corsepius at rtems.org
compiling cpukit/rtems/src/attr.c raises this warning:
...
cpukit/rtems/src/attr.c:29: warning: no previous prototype for
'rtems_interrupt_level_attribute'
...
GCC is correct, the function 'rtems_interrupt_level_attribute' is not declared,
nor is part of any public header in RTEMS.
A grep through the source tree, seems to indicate it is part of some Ada-API
and is only used inside of the testsuite via API-violating hackery:
# grep -R rtems_interrupt_level_attribute cpukit c testsuites
cpukit/rtems/src/attr.c:rtems_attribute rtems_interrupt_level_attribute(
c/src/ada/rtems.ads: pragma Import (C, Interrupt_Level,
"rtems_interrupt_level_attribute");
testsuites/sptests/sp37/sp37.doc: rtems_interrupt_level_attribute
testsuites/sptests/sp37/init.c:extern rtems_attribute
rtems_interrupt_level_attribute(uint32_t level);
testsuites/sptests/sp37/init.c: level_attribute =
rtems_interrupt_level_attribute( level );
testsuites/sptests/sp37/init.c: level_attribute =
rtems_interrupt_level_attribute( level );
testsuites/sptests/ChangeLog: rtems_interrupt_level_attribute.
testsuites/sptests/ChangeLog: rtems_interrupt_level_attribute body.
No idea what to do about this.
Should this function only be useful as part of the Ada-API, it should be moved
to libgnat.
Should this function be generally useful (I am having doubts, because it's not
used anywhere), a declaration should be added to some public header.
Similar considerations apply to the variable/symbol "rtems_interrupt_mask" from
the same file.
--
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