[PATCH 3/7] smp03: Remove set but not used warning.

Jennifer Averett jennifer.averett at oarcorp.com
Mon Nov 24 20:55:25 UTC 2014


Added status validation.
---
 testsuites/smptests/smp03/init.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuites/smptests/smp03/init.c b/testsuites/smptests/smp03/init.c
index 4b443d0..03eddb0 100644
--- a/testsuites/smptests/smp03/init.c
+++ b/testsuites/smptests/smp03/init.c
@@ -83,7 +83,9 @@ rtems_task Init(
       RTEMS_DEFAULT_ATTRIBUTES,
       &id
     );
+    directive_failed( status, "rtems_task_create" );
     status = rtems_task_start( id, Test_task, i );
+    directive_failed( status, "rtems_task_start" );
     
     /* Allow task to start before starting next task.
      * This is necessary on some simulators.
@@ -101,7 +103,9 @@ rtems_task Init(
     RTEMS_DEFAULT_ATTRIBUTES,
     &id
   );
+  directive_failed( status, "rtems_task_create" );
   status = rtems_task_start(id,Test_task,rtems_get_processor_count());
+  directive_failed( status, "rtems_task_start" );
 
   /* Wait on all tasks to run */
   while (1) {
-- 
1.8.1.4




More information about the devel mailing list