forked from Imagelibrary/rtems
validation: Fix unused variable warning
Fix warning: testsuites/validation/tc-signal-send.c:634:21: warning: unused variable 'sc' [-Wunused-variable]
This commit is contained in:
@@ -631,8 +631,6 @@ static void RtemsSignalReqSend_Post_Recursive_Check(
|
|||||||
|
|
||||||
static void RtemsSignalReqSend_Setup( RtemsSignalReqSend_Context *ctx )
|
static void RtemsSignalReqSend_Setup( RtemsSignalReqSend_Context *ctx )
|
||||||
{
|
{
|
||||||
rtems_status_code sc;
|
|
||||||
|
|
||||||
memset( ctx, 0, sizeof( *ctx ) );
|
memset( ctx, 0, sizeof( *ctx ) );
|
||||||
ctx->runner_id = rtems_task_self();
|
ctx->runner_id = rtems_task_self();
|
||||||
SetSelfPriority( PRIO_NORMAL );
|
SetSelfPriority( PRIO_NORMAL );
|
||||||
@@ -641,7 +639,8 @@ static void RtemsSignalReqSend_Setup( RtemsSignalReqSend_Context *ctx )
|
|||||||
|
|
||||||
#if defined(RTEMS_SMP)
|
#if defined(RTEMS_SMP)
|
||||||
if ( rtems_scheduler_get_processor_maximum() > 1 ) {
|
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 );
|
sc = rtems_scheduler_ident_by_processor( 1, &scheduler_id );
|
||||||
T_assert_rsc_success( sc );
|
T_assert_rsc_success( sc );
|
||||||
|
|||||||
Reference in New Issue
Block a user