[rtems commit] smp03: Remove set but not used warning.
Jennifer Averett
jennifer at rtems.org
Tue Nov 25 20:47:05 UTC 2014
Module: rtems
Branch: master
Commit: 4375b3b660d63af4fe8613b7b8ae9c4b0080de66
Changeset: http://git.rtems.org/rtems/commit/?id=4375b3b660d63af4fe8613b7b8ae9c4b0080de66
Author: Jennifer Averett <jennifer.averett at oarcorp.com>
Date: Wed Oct 22 13:45:38 2014 -0500
smp03: Remove set but not used warning.
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) {
More information about the vc
mailing list