From 9149c87ec724ed4e3f45762e771c12f81c3f5a33 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 23 Sep 2016 06:52:33 +0200 Subject: 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. --- cpukit/score/cpu/powerpc/rtems/score/cpu.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'cpukit/score/cpu/powerpc/rtems/score') diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h index b7be5ad0a4..4b14302a2c 100644 --- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h @@ -228,10 +228,6 @@ extern "C" { #ifndef ASM -typedef struct { - /* There is no CPU specific per-CPU state */ -} CPU_Per_CPU_control; - /* * Non-volatile context according to E500ABIUG, EABI and 32-bit TLS (according * to "Power Architecture 32-bit Application Binary Interface Supplement 1.0 - -- cgit v1.2.3