diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-25 11:24:44 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-06-26 09:22:41 +0200 |
commit | d811daca691e1fe9e8166fe20118148442f266a1 (patch) | |
tree | 017afda9dda2e68e9a2893d06d8983abfb2506dc /testsuites/sptests | |
parent | 5f31bbe1054fb070bd426eca3168ab4ba051b28f (diff) |
score: Hide SMP lock profiling impl if disabled
The problem is that empty structures have a different size in C and C++.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/sp37/init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |