summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-07 06:42:59 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-07 06:43:55 +0200
commit3e46a75e0465960cf986d994a652654623f04ebe (patch)
tree24272adee6b06604b8bcff77d13ecd9696706dea
parentb3364fc6cb2d7566cf5771a96711cd37b99cd9a3 (diff)
downloadrtems-3e46a75e0465960cf986d994a652654623f04ebe.tar.bz2
validation: Fix unused variable warning
Fix warning: testsuites/validation/tc-signal-send.c:634:21: warning: unused variable 'sc' [-Wunused-variable]
-rw-r--r--testsuites/validation/tc-signal-send.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c
index 777143cf48..1f5df24ffb 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 );