Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

#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 09/23/16 at 05:05:39 by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: newclosed

In [changeset:"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.