diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-23 06:52:33 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-09-23 06:57:03 +0200 |
commit | 9149c87ec724ed4e3f45762e771c12f81c3f5a33 (patch) | |
tree | 3687ac319c3bf27729dc56da77541a5194ffe708 /cpukit/score/cpu/m32c/rtems | |
parent | arm/tms570: document BSP setup with included hardware initialization. (diff) | |
download | rtems-9149c87ec724ed4e3f45762e771c12f81c3f5a33.tar.bz2 |
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.
Diffstat (limited to 'cpukit/score/cpu/m32c/rtems')
-rw-r--r-- | cpukit/score/cpu/m32c/rtems/score/cpu.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cpukit/score/cpu/m32c/rtems/score/cpu.h b/cpukit/score/cpu/m32c/rtems/score/cpu.h index f56e9d7790..8a29446e8e 100644 --- a/cpukit/score/cpu/m32c/rtems/score/cpu.h +++ b/cpukit/score/cpu/m32c/rtems/score/cpu.h @@ -383,10 +383,6 @@ extern "C" { /* may need to put some structures here. */ -typedef struct { - /* There is no CPU specific per-CPU state */ -} CPU_Per_CPU_control; - /** * @defgroup CPUContext Processor Dependent Context Management * |