[RTEMS Project] #2789: C/C++ compatibility issue with empy CPU_Per_CPU_control

RTEMS trac trac at rtems.org
Fri Sep 23 05:05:39 UTC 2016


#2789: C/C++ compatibility issue with empy CPU_Per_CPU_control
-----------------------------+------------------------------
 Reporter:  sebastian.huber  |       Owner:  sebastian.huber
     Type:  defect           |      Status:  closed
 Priority:  normal           |   Milestone:  4.11
Component:  cpukit           |     Version:  4.11
 Severity:  normal           |  Resolution:  fixed
 Keywords:                   |
-----------------------------+------------------------------
Changes (by Sebastian Huber <sebastian.huber@…>):

 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"75a6584a43a9ab4170376d31fe4041bbaaa7f547/rtems"]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="75a6584a43a9ab4170376d31fe4041bbaaa7f547"
 score: Fix C/C++ compatibility issue

 Only use CPU_Per_CPU_control if it contains at least one filed.  In GNU
 C empty structures have a size of zero.  In C++ structures have a
 non-zero size.  In case CPU_PER_CPU_CONTROL_SIZE is defined to zero,
 then this structure is not used anymore.

 Close #2789.
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/2789#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list