summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testsuites/sptests/sp37/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 22c7d4f2ef..4c8e1a7f64 100644
--- a/testsuites/sptests/sp37/init.c
+++ b/testsuites/sptests/sp37/init.c
@@ -169,7 +169,9 @@ static void test_isr_level( void )
static void test_isr_locks( void )
{
+#if defined(RTEMS_SMP)
static const char name[] = "test";
+#endif
ISR_Level normal_interrupt_level = _ISR_Get_level();
ISR_lock_Control initialized = ISR_LOCK_INITIALIZER( name );
ISR_lock_Control zero_initialized;