[rtems commit] spintrcritical23: Fix unused variable warnings
Sebastian Huber
sebh at rtems.org
Thu Aug 20 06:56:46 UTC 2020
Module: rtems
Branch: master
Commit: 79fb53687bdcff6f40b9ec9f98a159fe28c1bb4f
Changeset: http://git.rtems.org/rtems/commit/?id=79fb53687bdcff6f40b9ec9f98a159fe28c1bb4f
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Aug 20 08:31:47 2020 +0200
spintrcritical23: Fix unused variable warnings
---
testsuites/sptests/spintrcritical23/init.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testsuites/sptests/spintrcritical23/init.c b/testsuites/sptests/spintrcritical23/init.c
index 454941f..5959153 100644
--- a/testsuites/sptests/spintrcritical23/init.c
+++ b/testsuites/sptests/spintrcritical23/init.c
@@ -149,7 +149,7 @@ T_TEST_CASE(TaskSetPriorityInterrupt)
rtems_task_priority prio;
sc = rtems_task_set_priority(RTEMS_SELF, RTEMS_CURRENT_PRIORITY, &prio);
- T_rsc_success(RTEMS_SUCCESSFUL);
+ T_rsc_success(sc);
memset(&ctx, 0, sizeof(ctx));
rtems_interrupt_lock_initialize(&ctx.lock, "Test");
@@ -164,7 +164,7 @@ T_TEST_CASE(TaskSetPriorityInterrupt)
rtems_interrupt_lock_destroy(&ctx.lock);
sc = rtems_task_set_priority(RTEMS_SELF, prio, &prio);
- T_rsc_success(RTEMS_SUCCESSFUL);
+ T_rsc_success(sc);
}
static rtems_task Init(rtems_task_argument argument)
More information about the vc
mailing list