From d811daca691e1fe9e8166fe20118148442f266a1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 25 Jun 2015 11:24:44 +0200 Subject: score: Hide SMP lock profiling impl if disabled The problem is that empty structures have a different size in C and C++. --- testsuites/sptests/sp37/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c index 1dd434f52c..2fbe1172c1 100644 --- a/testsuites/sptests/sp37/init.c +++ b/testsuites/sptests/sp37/init.c @@ -161,8 +161,8 @@ static void test_isr_level( void ) #if defined(RTEMS_SMP) && defined(RTEMS_PROFILING) static const size_t lock_size = - offsetof( ISR_lock_Control, Lock.ticket_lock.Stats.name ) - + sizeof( ((ISR_lock_Control *) 0)->Lock.ticket_lock.Stats.name ); + offsetof( ISR_lock_Control, Lock.Stats.name ) + + sizeof( ((ISR_lock_Control *) 0)->Lock.Stats.name ); #else static const size_t lock_size = sizeof( ISR_lock_Control ); #endif -- cgit v1.2.3