[rtems commit] sp37: Fix unused variable warnings

Sebastian Huber sebh at rtems.org
Thu Aug 20 06:56:46 UTC 2020


Module:    rtems
Branch:    master
Commit:    218053d0f193ab9945d082f0a5855a82072cdab6
Changeset: http://git.rtems.org/rtems/commit/?id=218053d0f193ab9945d082f0a5855a82072cdab6

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug 20 08:31:30 2020 +0200

sp37: Fix unused variable warnings

---

 testsuites/sptests/sp37/init.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testsuites/sptests/sp37/init.c b/testsuites/sptests/sp37/init.c
index 22c7d4f..4c8e1a7 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;



More information about the vc mailing list