#2789 closed defect (fixed)

C/C++ compatibility issue with empy CPU_Per_CPU_control

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 4.11
Component: score Version: 4.11
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description


Change History (1)

comment:1 Changed on Sep 23, 2016 at 5:05:39 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: newclosed

In 75a6584a43a9ab4170376d31fe4041bbaaa7f547/rtems:

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.

Note: See TracTickets for help on using tickets.