[rtems commit] validation: Fix unused variable warning

Sebastian Huber sebh at rtems.org
Wed Apr 7 05:04:23 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Apr  7 06:42:59 2021 +0200

validation: Fix unused variable warning

Fix warning:

testsuites/validation/tc-signal-send.c:634:21: warning: unused variable
  'sc' [-Wunused-variable]

---

 testsuites/validation/tc-signal-send.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c
index 777143c..1f5df24 100644
--- a/testsuites/validation/tc-signal-send.c
+++ b/testsuites/validation/tc-signal-send.c
@@ -631,8 +631,6 @@ static void RtemsSignalReqSend_Post_Recursive_Check(
 
 static void RtemsSignalReqSend_Setup( RtemsSignalReqSend_Context *ctx )
 {
-  rtems_status_code sc;
-
   memset( ctx, 0, sizeof( *ctx ) );
   ctx->runner_id = rtems_task_self();
   SetSelfPriority( PRIO_NORMAL );
@@ -641,7 +639,8 @@ static void RtemsSignalReqSend_Setup( RtemsSignalReqSend_Context *ctx )
 
   #if defined(RTEMS_SMP)
   if ( rtems_scheduler_get_processor_maximum() > 1 ) {
-    rtems_id scheduler_id;
+    rtems_status_code sc;
+    rtems_id          scheduler_id;
 
     sc = rtems_scheduler_ident_by_processor( 1, &scheduler_id );
     T_assert_rsc_success( sc );



More information about the vc mailing list