summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-25 11:24:44 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-06-26 09:22:41 +0200
commitd811daca691e1fe9e8166fe20118148442f266a1 (patch)
tree017afda9dda2e68e9a2893d06d8983abfb2506dc /testsuites
parentlibmisc: Simplify <rtems/stackchk.h> (diff)
downloadrtems-d811daca691e1fe9e8166fe20118148442f266a1.tar.bz2
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')
-rw-r--r--testsuites/sptests/sp37/init.c4
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