From 748758758bcc5182ad3edcc07bffc4bba2b4e790 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 25 Sep 2025 08:45:19 -0500 Subject: [PATCH] testsuites/validation/*: Address unused parameter warnings Fixed many warnings for unused parameters. Some cases were a simple matter of adding "(void) param" at the beginning of the function, while others required ensuring that addition was inside the proper conditional section. Found with GCC's warning -Wunused-paramter. --- .../validation/bsps/ts-fatal-extension.c | 2 ++ testsuites/validation/tc-barrier-create.c | 2 ++ .../validation/tc-barrier-performance.c | 10 +++++++++ testsuites/validation/tc-basedefs-pendant.c | 10 +++++++++ testsuites/validation/tc-basedefs.c | 4 ++++ testsuites/validation/tc-clock-get-tod.c | 2 ++ testsuites/validation/tc-clock-set.c | 2 ++ testsuites/validation/tc-cpu-performance.c | 12 ++++++++++ testsuites/validation/tc-event-performance.c | 10 +++++++++ testsuites/validation/tc-flsl.c | 6 +++++ testsuites/validation/tc-futex-wait.c | 4 ++++ testsuites/validation/tc-futex-wake.c | 8 +++++++ testsuites/validation/tc-intr-clear.c | 4 ++++ testsuites/validation/tc-intr-entry-install.c | 2 ++ testsuites/validation/tc-intr-entry-remove.c | 2 ++ testsuites/validation/tc-intr-get-affinity.c | 4 ++++ testsuites/validation/tc-intr-get-priority.c | 2 ++ testsuites/validation/tc-intr-is-pending.c | 2 ++ testsuites/validation/tc-intr-raise-on.c | 4 ++++ testsuites/validation/tc-intr-raise.c | 4 ++++ testsuites/validation/tc-intr-set-affinity.c | 4 ++++ testsuites/validation/tc-intr-set-priority.c | 2 ++ .../validation/tc-intr-vector-disable.c | 6 +++++ testsuites/validation/tc-intr-vector-enable.c | 6 +++++ testsuites/validation/tc-message-broadcast.c | 2 ++ .../validation/tc-message-flush-pending.c | 2 ++ .../validation/tc-message-performance.c | 15 +++++++++++++ testsuites/validation/tc-message-receive.c | 2 ++ .../validation/tc-message-urgent-send.c | 9 +++++++- testsuites/validation/tc-part-performance.c | 9 ++++++++ testsuites/validation/tc-ratemon-cancel.c | 4 ++++ testsuites/validation/tc-ratemon-create.c | 2 ++ testsuites/validation/tc-ratemon-get-status.c | 4 ++++ testsuites/validation/tc-ratemon-period.c | 2 ++ testsuites/validation/tc-ratemon-timeout.c | 2 ++ .../validation/tc-scheduler-add-processor.c | 12 ++++++---- .../tc-scheduler-remove-processor.c | 12 ++++++---- testsuites/validation/tc-score-thread.c | 2 ++ testsuites/validation/tc-sem-flush.c | 2 ++ testsuites/validation/tc-sem-obtain.c | 2 ++ testsuites/validation/tc-sem-performance.c | 18 +++++++++++++++ testsuites/validation/tc-sem-release.c | 2 ++ testsuites/validation/tc-sem-set-priority.c | 2 ++ testsuites/validation/tc-sem-uni.c | 4 ++++ testsuites/validation/tc-signal-send.c | 2 ++ testsuites/validation/tc-task-construct.c | 2 ++ testsuites/validation/tc-task-delete.c | 3 +++ testsuites/validation/tc-task-exit.c | 3 +++ testsuites/validation/tc-task-is-suspended.c | 2 ++ testsuites/validation/tc-task-mode.c | 2 ++ testsuites/validation/tc-task-performance.c | 22 +++++++++++++++++++ testsuites/validation/tc-task-restart.c | 3 +++ testsuites/validation/tc-task-resume.c | 2 ++ testsuites/validation/tc-task-set-priority.c | 6 +++++ testsuites/validation/tc-task-storage-size.c | 2 ++ testsuites/validation/tc-task-suspend.c | 2 ++ testsuites/validation/tc-task-wake-when.c | 2 ++ testsuites/validation/tc-timer-cancel.c | 6 +++++ testsuites/validation/tc-timer-create.c | 4 ++++ testsuites/validation/tc-timer-fire-after.c | 6 +++++ testsuites/validation/tc-timer-fire-when.c | 6 +++++ .../validation/tc-timer-initiate-server.c | 6 +++++ testsuites/validation/tc-timer-reset.c | 12 ++++++++++ .../validation/tc-timer-server-fire-after.c | 6 +++++ .../validation/tc-timer-server-fire-when.c | 6 +++++ testsuites/validation/tc-timer.c | 3 +++ testsuites/validation/tc-userext-create.c | 4 ++++ testsuites/validation/tc-userext.c | 4 ++++ testsuites/validation/tr-event-constant.c | 22 +++++++++++++++++++ testsuites/validation/tr-event-send-receive.c | 2 ++ testsuites/validation/tr-sem-seize-wait.c | 4 ++++ .../validation/tr-tq-enqueue-deadlock.c | 2 ++ .../validation/tr-tq-flush-priority-inherit.c | 2 ++ .../tr-tq-surrender-priority-inherit.c | 10 +++++++++ testsuites/validation/tr-tq-timeout.c | 2 ++ testsuites/validation/tx-support.c | 4 ++++ testsuites/validation/tx-thread-queue.c | 6 +++++ 77 files changed, 384 insertions(+), 9 deletions(-) diff --git a/testsuites/validation/bsps/ts-fatal-extension.c b/testsuites/validation/bsps/ts-fatal-extension.c index 395b001af5..fa921877b0 100644 --- a/testsuites/validation/bsps/ts-fatal-extension.c +++ b/testsuites/validation/bsps/ts-fatal-extension.c @@ -171,6 +171,8 @@ static void *ShutdownIdleBody( uintptr_t arg ) return _CPU_Thread_Idle_body( arg ); #else + (void) arg; + rtems_test_begin( rtems_test_name, TEST_STATE ); rtems_fatal( RTEMS_FATAL_SOURCE_APPLICATION, 123 ); #endif diff --git a/testsuites/validation/tc-barrier-create.c b/testsuites/validation/tc-barrier-create.c index ba35d0ad97..fbef15b6c6 100644 --- a/testsuites/validation/tc-barrier-create.c +++ b/testsuites/validation/tc-barrier-create.c @@ -259,6 +259,8 @@ static void Worker( rtems_task_argument arg ) static rtems_status_code Create( void *arg, uint32_t *id ) { + (void) arg; + return rtems_barrier_create( rtems_build_name( 'S', 'I', 'Z', 'E' ), RTEMS_DEFAULT_ATTRIBUTES, diff --git a/testsuites/validation/tc-barrier-performance.c b/testsuites/validation/tc-barrier-performance.c index 52ca8685b6..c2b5700aaf 100644 --- a/testsuites/validation/tc-barrier-performance.c +++ b/testsuites/validation/tc-barrier-performance.c @@ -213,6 +213,9 @@ static bool RtemsBarrierReqPerfReleaseAuto_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); return tic == toc; @@ -397,6 +400,8 @@ static void RtemsBarrierReqPerfReleaseManual_Setup( RtemsBarrierValPerf_Context *ctx ) { + (void) ctx; + Yield(); } @@ -439,6 +444,9 @@ static bool RtemsBarrierReqPerfReleaseManual_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); return tic == toc; @@ -545,6 +553,8 @@ static bool RtemsBarrierReqPerfReleaseManualPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; diff --git a/testsuites/validation/tc-basedefs-pendant.c b/testsuites/validation/tc-basedefs-pendant.c index 620e2d0efa..2e31c76fe1 100644 --- a/testsuites/validation/tc-basedefs-pendant.c +++ b/testsuites/validation/tc-basedefs-pendant.c @@ -97,22 +97,32 @@ static RTEMS_ALIGNED( 64 ) int allocated_memory_dummy; void *basedefs_malloclike_func( size_t size ) { + (void) size; + return &allocated_memory_dummy; } void *basedefs_alloc_align_func( size_t size, void **p, size_t alignment ) { + (void) size; + (void) alignment; + *p = &allocated_memory_dummy; return &allocated_memory_dummy; } void *basedefs_alloc_size_func( size_t size ) { + (void) size; + return &allocated_memory_dummy; } void *basedefs_alloc_size_2_func( size_t size0, size_t size1 ) { + (void) size0; + (void) size1; + return &allocated_memory_dummy; } diff --git a/testsuites/validation/tc-basedefs.c b/testsuites/validation/tc-basedefs.c index ada13f0156..260ca6572d 100644 --- a/testsuites/validation/tc-basedefs.c +++ b/testsuites/validation/tc-basedefs.c @@ -523,6 +523,8 @@ RTEMS_COMPILER_NO_RETURN_ATTRIBUTE static void compiler_no_return_attribute_func( int i ); static void compiler_no_return_attribute_func( int i ) { + (void) i; + while ( true ) { /* Loop forever */ } @@ -570,6 +572,8 @@ RTEMS_NO_INLINE static int no_inline_func( void ) RTEMS_NO_RETURN static void no_return_func( int i ) { + (void) i; + while ( true ) { /* Loop forever */ } diff --git a/testsuites/validation/tc-clock-get-tod.c b/testsuites/validation/tc-clock-get-tod.c index 8bf5717171..e9c03198bb 100644 --- a/testsuites/validation/tc-clock-get-tod.c +++ b/testsuites/validation/tc-clock-get-tod.c @@ -377,6 +377,8 @@ static void RtemsClockReqGetTod_Action( RtemsClockReqGetTod_Context *ctx ) static void RtemsClockReqGetTod_Cleanup( RtemsClockReqGetTod_Context *ctx ) { + (void) ctx; + UnsetClock(); } diff --git a/testsuites/validation/tc-clock-set.c b/testsuites/validation/tc-clock-set.c index 0ed631004b..1ef11ba885 100644 --- a/testsuites/validation/tc-clock-set.c +++ b/testsuites/validation/tc-clock-set.c @@ -233,6 +233,8 @@ static rtems_timer_service_routine _TOD_timer_routine( void *user_data ) { + (void) timer_id; + Context *ctx = user_data; rtems_status_code status; ++ctx->timer_routine_counter; diff --git a/testsuites/validation/tc-cpu-performance.c b/testsuites/validation/tc-cpu-performance.c index 4f090e704f..db2e6690de 100644 --- a/testsuites/validation/tc-cpu-performance.c +++ b/testsuites/validation/tc-cpu-performance.c @@ -135,6 +135,8 @@ static T_fixture ScoreCpuValPerf_Fixture = { */ static void ScoreCpuReqPerfEmpty_Body( ScoreCpuValPerf_Context *ctx ) { + (void) ctx; + /* No code */ } @@ -157,6 +159,10 @@ static bool ScoreCpuReqPerfEmpty_Teardown( unsigned int retry ) { + (void) ctx; + (void) delta; + (void) retry; + return tic == toc; } @@ -187,6 +193,8 @@ static bool ScoreCpuReqPerfEmpty_Teardown_Wrap( */ static void ScoreCpuReqPerfNops_Body( ScoreCpuValPerf_Context *ctx ) { + (void) ctx; + #define NOPS_10 \ _CPU_Instruction_no_operation(); _CPU_Instruction_no_operation(); \ _CPU_Instruction_no_operation(); _CPU_Instruction_no_operation(); \ @@ -226,6 +234,10 @@ static bool ScoreCpuReqPerfNops_Teardown( unsigned int retry ) { + (void) ctx; + (void) delta; + (void) retry; + return tic == toc; } diff --git a/testsuites/validation/tc-event-performance.c b/testsuites/validation/tc-event-performance.c index 9cf71e92f5..0e009024be 100644 --- a/testsuites/validation/tc-event-performance.c +++ b/testsuites/validation/tc-event-performance.c @@ -244,6 +244,8 @@ static bool RtemsEventReqPerfIsrPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; @@ -317,6 +319,9 @@ static bool RtemsEventReqPerfOther_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); SetPriority( ctx->worker_id, PRIO_HIGH ); @@ -454,6 +459,9 @@ static bool RtemsEventReqPerfOtherNotSatisfied_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); Send( ctx, EVENT_END ); @@ -521,6 +529,8 @@ static bool RtemsEventReqPerfOtherPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; diff --git a/testsuites/validation/tc-flsl.c b/testsuites/validation/tc-flsl.c index 95f0ed9ccf..8d61481374 100644 --- a/testsuites/validation/tc-flsl.c +++ b/testsuites/validation/tc-flsl.c @@ -135,6 +135,8 @@ static void CReqFlsl_Pre_Value_Prepare( CReqFlsl_Pre_Value state ) { + (void) ctx; + switch ( state ) { case CReqFlsl_Pre_Value_Zero: { /* @@ -162,6 +164,8 @@ static void CReqFlsl_Post_Result_Check( CReqFlsl_Post_Result state ) { + (void) ctx; + int expected_result; long value; size_t i; @@ -198,6 +202,8 @@ static void CReqFlsl_Post_Result_Check( static void CReqFlsl_Action( CReqFlsl_Context *ctx ) { + (void) ctx; + /* The action is performed in the post-condition states */ } diff --git a/testsuites/validation/tc-futex-wait.c b/testsuites/validation/tc-futex-wait.c index 3730df2a40..9231a9facb 100644 --- a/testsuites/validation/tc-futex-wait.c +++ b/testsuites/validation/tc-futex-wait.c @@ -170,6 +170,8 @@ static Context *ToContext( TQContext *tq_ctx ) static Status_Control Enqueue( TQContext *tq_ctx, TQWait wait ) { + (void) wait; + Context *ctx; int eno; @@ -322,6 +324,8 @@ static void NewlibReqFutexWait_Prepare( NewlibReqFutexWait_Context *ctx ) static void NewlibReqFutexWait_Action( NewlibReqFutexWait_Context *ctx ) { + (void) ctx; + /* The action is performed in the post-conditions. */ } diff --git a/testsuites/validation/tc-futex-wake.c b/testsuites/validation/tc-futex-wake.c index 7d4d6e7977..fc3a1b33db 100644 --- a/testsuites/validation/tc-futex-wake.c +++ b/testsuites/validation/tc-futex-wake.c @@ -164,6 +164,8 @@ static Context *ToContext( TQContext *tq_ctx ) static Status_Control Enqueue( TQContext *tq_ctx, TQWait wait ) { + (void) wait; + Context *ctx; int count; int eno; @@ -205,6 +207,8 @@ static void NewlibReqFutexWake_Pre_Count_Prepare( NewlibReqFutexWake_Pre_Count state ) { + (void) ctx; + switch ( state ) { case NewlibReqFutexWake_Pre_Count_NegativeOrZero: { /* @@ -232,6 +236,8 @@ static void NewlibReqFutexWake_Post_Result_Check( NewlibReqFutexWake_Post_Result state ) { + (void) ctx; + switch ( state ) { case NewlibReqFutexWake_Post_Result_Count: { /* @@ -320,6 +326,8 @@ static void NewlibReqFutexWake_Prepare( NewlibReqFutexWake_Context *ctx ) static void NewlibReqFutexWake_Action( NewlibReqFutexWake_Context *ctx ) { + (void) ctx; + /* The action is performed in the `Flush` post-condition `All` state. */ } diff --git a/testsuites/validation/tc-intr-clear.c b/testsuites/validation/tc-intr-clear.c index b131b738fd..c827f3f90c 100644 --- a/testsuites/validation/tc-intr-clear.c +++ b/testsuites/validation/tc-intr-clear.c @@ -387,6 +387,8 @@ static void RtemsIntrReqClear_Pre_CanClear_Prepare( RtemsIntrReqClear_Pre_CanClear state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqClear_Pre_CanClear_Yes: { /* @@ -460,6 +462,8 @@ static void RtemsIntrReqClear_Post_Cleared_Check( RtemsIntrReqClear_Post_Cleared state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqClear_Post_Cleared_Yes: { /* diff --git a/testsuites/validation/tc-intr-entry-install.c b/testsuites/validation/tc-intr-entry-install.c index fc4d6bd779..9293e406d8 100644 --- a/testsuites/validation/tc-intr-entry-install.c +++ b/testsuites/validation/tc-intr-entry-install.c @@ -774,6 +774,8 @@ static void RtemsIntrReqEntryInstall_Pre_CanEnable_Prepare( RtemsIntrReqEntryInstall_Pre_CanEnable state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqEntryInstall_Pre_CanEnable_Yes: { /* diff --git a/testsuites/validation/tc-intr-entry-remove.c b/testsuites/validation/tc-intr-entry-remove.c index 03ce910a80..215e978423 100644 --- a/testsuites/validation/tc-intr-entry-remove.c +++ b/testsuites/validation/tc-intr-entry-remove.c @@ -780,6 +780,8 @@ static void RtemsIntrReqEntryRemove_Pre_CanDisable_Prepare( RtemsIntrReqEntryRemove_Pre_CanDisable state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqEntryRemove_Pre_CanDisable_Yes: { /* diff --git a/testsuites/validation/tc-intr-get-affinity.c b/testsuites/validation/tc-intr-get-affinity.c index 8e2ebb2bab..48986d8c1d 100644 --- a/testsuites/validation/tc-intr-get-affinity.c +++ b/testsuites/validation/tc-intr-get-affinity.c @@ -374,6 +374,8 @@ static void RtemsIntrReqGetAffinity_Pre_CanGetAffinity_Prepare( RtemsIntrReqGetAffinity_Pre_CanGetAffinity state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqGetAffinity_Pre_CanGetAffinity_Yes: { /* @@ -459,6 +461,8 @@ static void RtemsIntrReqGetAffinity_Post_CPUSetObj_Check( RtemsIntrReqGetAffinity_Post_CPUSetObj state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqGetAffinity_Post_CPUSetObj_Set: { /* diff --git a/testsuites/validation/tc-intr-get-priority.c b/testsuites/validation/tc-intr-get-priority.c index 8975acddb5..c629a9d2ac 100644 --- a/testsuites/validation/tc-intr-get-priority.c +++ b/testsuites/validation/tc-intr-get-priority.c @@ -401,6 +401,8 @@ static void RtemsIntrReqGetPriority_Action( RtemsIntrReqGetPriority_Context *ctx ) { + (void) ctx; + /* Action carried out by CheckGetPriority() */ } diff --git a/testsuites/validation/tc-intr-is-pending.c b/testsuites/validation/tc-intr-is-pending.c index 5f3ade85fe..f38a773b02 100644 --- a/testsuites/validation/tc-intr-is-pending.c +++ b/testsuites/validation/tc-intr-is-pending.c @@ -412,6 +412,8 @@ static void RtemsIntrReqIsPending_Pre_IsPending_Prepare( RtemsIntrReqIsPending_Pre_IsPending state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqIsPending_Pre_IsPending_Yes: { /* diff --git a/testsuites/validation/tc-intr-raise-on.c b/testsuites/validation/tc-intr-raise-on.c index d4298463b6..c4f0808da3 100644 --- a/testsuites/validation/tc-intr-raise-on.c +++ b/testsuites/validation/tc-intr-raise-on.c @@ -447,6 +447,8 @@ static void RtemsIntrReqRaiseOn_Pre_CanRaiseOn_Prepare( RtemsIntrReqRaiseOn_Pre_CanRaiseOn state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqRaiseOn_Pre_CanRaiseOn_Yes: { /* @@ -538,6 +540,8 @@ static void RtemsIntrReqRaiseOn_Post_Pending_Check( RtemsIntrReqRaiseOn_Post_Pending state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqRaiseOn_Post_Pending_Yes: { /* diff --git a/testsuites/validation/tc-intr-raise.c b/testsuites/validation/tc-intr-raise.c index 1faa48fc79..dc5105e2d1 100644 --- a/testsuites/validation/tc-intr-raise.c +++ b/testsuites/validation/tc-intr-raise.c @@ -379,6 +379,8 @@ static void RtemsIntrReqRaise_Pre_CanRaise_Prepare( RtemsIntrReqRaise_Pre_CanRaise state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqRaise_Pre_CanRaise_Yes: { /* @@ -452,6 +454,8 @@ static void RtemsIntrReqRaise_Post_Pending_Check( RtemsIntrReqRaise_Post_Pending state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqRaise_Post_Pending_Yes: { /* diff --git a/testsuites/validation/tc-intr-set-affinity.c b/testsuites/validation/tc-intr-set-affinity.c index 3354681b47..d512e0e286 100644 --- a/testsuites/validation/tc-intr-set-affinity.c +++ b/testsuites/validation/tc-intr-set-affinity.c @@ -466,6 +466,8 @@ static void RtemsIntrReqSetAffinity_Pre_CanSetAffinity_Prepare( RtemsIntrReqSetAffinity_Pre_CanSetAffinity state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqSetAffinity_Pre_CanSetAffinity_Yes: { /* @@ -551,6 +553,8 @@ static void RtemsIntrReqSetAffinity_Post_SetAffinity_Check( RtemsIntrReqSetAffinity_Post_SetAffinity state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqSetAffinity_Post_SetAffinity_Set: { /* diff --git a/testsuites/validation/tc-intr-set-priority.c b/testsuites/validation/tc-intr-set-priority.c index 3742f2162d..50f6387c17 100644 --- a/testsuites/validation/tc-intr-set-priority.c +++ b/testsuites/validation/tc-intr-set-priority.c @@ -343,6 +343,8 @@ static void RtemsIntrReqSetPriority_Action( RtemsIntrReqSetPriority_Context *ctx ) { + (void) ctx; + /* Action carried out by CheckSetPriority() */ } diff --git a/testsuites/validation/tc-intr-vector-disable.c b/testsuites/validation/tc-intr-vector-disable.c index 5dafa18b83..a6b92c59d7 100644 --- a/testsuites/validation/tc-intr-vector-disable.c +++ b/testsuites/validation/tc-intr-vector-disable.c @@ -398,6 +398,8 @@ static void RtemsIntrReqVectorDisable_Pre_IsEnabled_Prepare( RtemsIntrReqVectorDisable_Pre_IsEnabled state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorDisable_Pre_IsEnabled_Yes: { /* @@ -433,6 +435,8 @@ static void RtemsIntrReqVectorDisable_Pre_CanDisable_Prepare( RtemsIntrReqVectorDisable_Pre_CanDisable state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorDisable_Pre_CanDisable_Yes: { /* @@ -524,6 +528,8 @@ static void RtemsIntrReqVectorDisable_Post_IsEnabled_Check( RtemsIntrReqVectorDisable_Post_IsEnabled state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorDisable_Post_IsEnabled_Nop: { /* diff --git a/testsuites/validation/tc-intr-vector-enable.c b/testsuites/validation/tc-intr-vector-enable.c index 80ca41c5d8..8db1e92157 100644 --- a/testsuites/validation/tc-intr-vector-enable.c +++ b/testsuites/validation/tc-intr-vector-enable.c @@ -402,6 +402,8 @@ static void RtemsIntrReqVectorEnable_Pre_IsEnabled_Prepare( RtemsIntrReqVectorEnable_Pre_IsEnabled state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorEnable_Pre_IsEnabled_Yes: { /* @@ -437,6 +439,8 @@ static void RtemsIntrReqVectorEnable_Pre_CanEnable_Prepare( RtemsIntrReqVectorEnable_Pre_CanEnable state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorEnable_Pre_CanEnable_Yes: { /* @@ -528,6 +532,8 @@ static void RtemsIntrReqVectorEnable_Post_IsEnabled_Check( RtemsIntrReqVectorEnable_Post_IsEnabled state ) { + (void) ctx; + switch ( state ) { case RtemsIntrReqVectorEnable_Post_IsEnabled_Nop: { /* diff --git a/testsuites/validation/tc-message-broadcast.c b/testsuites/validation/tc-message-broadcast.c index f085bb2c95..006796cdb6 100644 --- a/testsuites/validation/tc-message-broadcast.c +++ b/testsuites/validation/tc-message-broadcast.c @@ -637,6 +637,8 @@ static void RtemsMessageReqBroadcast_Pre_Storage_Prepare( RtemsMessageReqBroadcast_Pre_Storage state ) { + (void) ctx; + switch ( state ) { case RtemsMessageReqBroadcast_Pre_Storage_Nop: { /* diff --git a/testsuites/validation/tc-message-flush-pending.c b/testsuites/validation/tc-message-flush-pending.c index 16c46365b3..26b00f64d4 100644 --- a/testsuites/validation/tc-message-flush-pending.c +++ b/testsuites/validation/tc-message-flush-pending.c @@ -541,6 +541,8 @@ static void RtemsMessageReqFlushPending_Pre_Storage_Prepare( RtemsMessageReqFlushPending_Pre_Storage state ) { + (void) ctx; + switch ( state ) { case RtemsMessageReqFlushPending_Pre_Storage_Nop: { /* diff --git a/testsuites/validation/tc-message-performance.c b/testsuites/validation/tc-message-performance.c index c01570b772..5d00ee0772 100644 --- a/testsuites/validation/tc-message-performance.c +++ b/testsuites/validation/tc-message-performance.c @@ -323,6 +323,9 @@ static bool RtemsMessageReqPerfReceiveTry_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_UNSATISFIED ); return tic == toc; @@ -410,6 +413,8 @@ static bool RtemsMessageReqPerfReceiveWaitForever_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; @@ -506,6 +511,8 @@ static bool RtemsMessageReqPerfReceiveWaitTimed_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; @@ -574,6 +581,9 @@ static bool RtemsMessageReqPerfSend_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + rtems_status_code sc; uint32_t count; @@ -662,6 +672,9 @@ static bool RtemsMessageReqPerfSendOther_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); SetPriority( ctx->worker_id, PRIO_HIGH ); @@ -858,6 +871,8 @@ static bool RtemsMessageReqPerfSendPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; diff --git a/testsuites/validation/tc-message-receive.c b/testsuites/validation/tc-message-receive.c index 187d1a915d..984e820a19 100644 --- a/testsuites/validation/tc-message-receive.c +++ b/testsuites/validation/tc-message-receive.c @@ -905,6 +905,8 @@ static void RtemsMessageReqReceive_Pre_Storage_Prepare( RtemsMessageReqReceive_Pre_Storage state ) { + (void) ctx; + switch ( state ) { case RtemsMessageReqReceive_Pre_Storage_Nop: { /* diff --git a/testsuites/validation/tc-message-urgent-send.c b/testsuites/validation/tc-message-urgent-send.c index 01c3349620..6b9c249f32 100644 --- a/testsuites/validation/tc-message-urgent-send.c +++ b/testsuites/validation/tc-message-urgent-send.c @@ -370,6 +370,9 @@ static void CheckForNoMessage( ) { (void) ctx; + (void) message_buffer; + (void) message_size; + T_rsc( status, RTEMS_UNSATISFIED ); } @@ -459,7 +462,9 @@ static void PopMessage( } static void CheckForNoMessageInQueue( void *ctx_in ) -{} +{ + (void) ctx_in; +} static void CheckForOneMessageInQueue( void *ctx_in ) { @@ -714,6 +719,8 @@ static void RtemsMessageReqUrgentSend_Pre_Storage_Prepare( RtemsMessageReqUrgentSend_Pre_Storage state ) { + (void) ctx; + switch ( state ) { case RtemsMessageReqUrgentSend_Pre_Storage_Nop: { /* diff --git a/testsuites/validation/tc-part-performance.c b/testsuites/validation/tc-part-performance.c index 858dbc0b4b..bad6119b1d 100644 --- a/testsuites/validation/tc-part-performance.c +++ b/testsuites/validation/tc-part-performance.c @@ -244,6 +244,9 @@ static bool RtemsPartReqPerfGetBuffer_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + rtems_status_code sc; T_quiet_rsc_success( ctx->status ); @@ -317,6 +320,9 @@ static bool RtemsPartReqPerfGetNoBuffer_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_UNSATISFIED ); return tic == toc; @@ -404,6 +410,9 @@ static bool RtemsPartReqPerfReturnBuffer_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_SUCCESSFUL ); return tic == toc; diff --git a/testsuites/validation/tc-ratemon-cancel.c b/testsuites/validation/tc-ratemon-cancel.c index 37efdbed40..6f626d020d 100644 --- a/testsuites/validation/tc-ratemon-cancel.c +++ b/testsuites/validation/tc-ratemon-cancel.c @@ -275,6 +275,8 @@ static void TickTheClock( uint32_t ticks ) { + (void) ctx; + uint32_t i; for ( i = 0; i < ticks; ++i ) { TimecounterTick(); @@ -576,6 +578,8 @@ static void RtemsRatemonReqCancel_Post_Scheduler_Check( RtemsRatemonReqCancel_Post_Scheduler state ) { + (void) ctx; + switch ( state ) { case RtemsRatemonReqCancel_Post_Scheduler_Called: { /* diff --git a/testsuites/validation/tc-ratemon-create.c b/testsuites/validation/tc-ratemon-create.c index ff7672beeb..4bee12b9e2 100644 --- a/testsuites/validation/tc-ratemon-create.c +++ b/testsuites/validation/tc-ratemon-create.c @@ -190,6 +190,8 @@ static const char * const * const RtemsRatemonReqCreate_PreDesc[] = { static rtems_status_code Create( void *arg, uint32_t *id ) { + (void) arg; + return rtems_rate_monotonic_create( rtems_build_name( 'S', 'I', 'Z', 'E' ), id diff --git a/testsuites/validation/tc-ratemon-get-status.c b/testsuites/validation/tc-ratemon-get-status.c index 750654e2c9..80d0ee8349 100644 --- a/testsuites/validation/tc-ratemon-get-status.c +++ b/testsuites/validation/tc-ratemon-get-status.c @@ -465,6 +465,8 @@ static void RtemsRatemonReqGetStatus_Pre_Elapsed_Prepare( RtemsRatemonReqGetStatus_Pre_Elapsed state ) { + (void) ctx; + switch ( state ) { case RtemsRatemonReqGetStatus_Pre_Elapsed_Time: { /* @@ -883,6 +885,8 @@ static void RtemsRatemonReqGetStatus_Prepare( RtemsRatemonReqGetStatus_Context *ctx ) { + (void) ctx; + rtems_status_code status; status = rtems_rate_monotonic_create( rtems_build_name( 'R', 'M', 'O', 'N' ), diff --git a/testsuites/validation/tc-ratemon-period.c b/testsuites/validation/tc-ratemon-period.c index 40b28b3ad8..bb6ad98f7f 100644 --- a/testsuites/validation/tc-ratemon-period.c +++ b/testsuites/validation/tc-ratemon-period.c @@ -884,6 +884,8 @@ static void RtemsRatemonReqPeriod_Post_Scheduler_Check( RtemsRatemonReqPeriod_Post_Scheduler state ) { + (void) ctx; + switch ( state ) { case RtemsRatemonReqPeriod_Post_Scheduler_Called: { /* diff --git a/testsuites/validation/tc-ratemon-timeout.c b/testsuites/validation/tc-ratemon-timeout.c index dc2c745e61..dff4e0cddc 100644 --- a/testsuites/validation/tc-ratemon-timeout.c +++ b/testsuites/validation/tc-ratemon-timeout.c @@ -789,6 +789,8 @@ static void RtemsRatemonReqTimeout_Cleanup( RtemsRatemonReqTimeout_Context *ctx ) { + (void) ctx; + ClockTick(); Yield(); } diff --git a/testsuites/validation/tc-scheduler-add-processor.c b/testsuites/validation/tc-scheduler-add-processor.c index a26132aea0..e463ee2e0e 100644 --- a/testsuites/validation/tc-scheduler-add-processor.c +++ b/testsuites/validation/tc-scheduler-add-processor.c @@ -571,10 +571,12 @@ static void RtemsSchedulerReqAddProcessor_Prepare( RtemsSchedulerReqAddProcessor_Context *ctx ) { - #if defined(RTEMS_SMP) +#if defined(RTEMS_SMP) ctx->add_cpu_to_scheduler_b = false; ctx->online = _Per_CPU_Is_processor_online( ctx->cpu ); - #endif +#else + (void) ctx; +#endif } static void RtemsSchedulerReqAddProcessor_Action( @@ -596,7 +598,7 @@ static void RtemsSchedulerReqAddProcessor_Cleanup( RtemsSchedulerReqAddProcessor_Context *ctx ) { - #if defined(RTEMS_SMP) +#if defined(RTEMS_SMP) rtems_status_code sc; ctx->cpu->online = ctx->online; @@ -610,7 +612,9 @@ static void RtemsSchedulerReqAddProcessor_Cleanup( sc = rtems_scheduler_add_processor( ctx->scheduler_b_id, CPU_TO_ADD ); T_rsc_success( sc ); } - #endif +#else + (void) ctx; +#endif } static const RtemsSchedulerReqAddProcessor_Entry diff --git a/testsuites/validation/tc-scheduler-remove-processor.c b/testsuites/validation/tc-scheduler-remove-processor.c index f199389a33..d97c8f7984 100644 --- a/testsuites/validation/tc-scheduler-remove-processor.c +++ b/testsuites/validation/tc-scheduler-remove-processor.c @@ -948,7 +948,7 @@ static void RtemsSchedulerReqRemoveProcessor_Setup( RtemsSchedulerReqRemoveProcessor_Context *ctx ) { - #if defined(RTEMS_SMP) +#if defined(RTEMS_SMP) rtems_status_code sc; rtems_task_priority priority; @@ -1001,7 +1001,9 @@ static void RtemsSchedulerReqRemoveProcessor_Setup( StartTask( ctx->worker_id[ WORKER_B ], WorkerB, ctx ); WrapThreadQueueInitialize( &ctx->wrap_tq_ctx, RequestISR, ctx ); - #endif +#else + (void) ctx; +#endif } static void RtemsSchedulerReqRemoveProcessor_Setup_Wrap( void *arg ) @@ -1017,7 +1019,7 @@ static void RtemsSchedulerReqRemoveProcessor_Teardown( RtemsSchedulerReqRemoveProcessor_Context *ctx ) { - #if defined(RTEMS_SMP) +#if defined(RTEMS_SMP) DeleteTask( ctx->worker_id[ WORKER_A ] ); DeleteTask( ctx->worker_id[ WORKER_B ] ); DeleteTask( ctx->worker_id[ WORKER_C ] ); @@ -1031,7 +1033,9 @@ static void RtemsSchedulerReqRemoveProcessor_Teardown( RestoreRunnerPriority(); SetSelfAffinityAll(); - #endif +#else + (void) ctx; +#endif } static void RtemsSchedulerReqRemoveProcessor_Teardown_Wrap( void *arg ) diff --git a/testsuites/validation/tc-score-thread.c b/testsuites/validation/tc-score-thread.c index e065905641..917c0b8e7e 100644 --- a/testsuites/validation/tc-score-thread.c +++ b/testsuites/validation/tc-score-thread.c @@ -378,6 +378,8 @@ static void ScoreThreadValThread_Action_1( ScoreThreadValThread_Context *ctx ) */ static void ScoreThreadValThread_Action_2( ScoreThreadValThread_Context *ctx ) { + (void) ctx; + test_case_executed = true; /* diff --git a/testsuites/validation/tc-sem-flush.c b/testsuites/validation/tc-sem-flush.c index 4fb2027354..41690078c9 100644 --- a/testsuites/validation/tc-sem-flush.c +++ b/testsuites/validation/tc-sem-flush.c @@ -352,6 +352,8 @@ static void RtemsSemReqFlush_Pre_Id_Prepare( RtemsSemReqFlush_Pre_Id state ) { + (void) ctx; + switch ( state ) { case RtemsSemReqFlush_Pre_Id_Valid: { /* diff --git a/testsuites/validation/tc-sem-obtain.c b/testsuites/validation/tc-sem-obtain.c index 10c4475d8c..e055c66072 100644 --- a/testsuites/validation/tc-sem-obtain.c +++ b/testsuites/validation/tc-sem-obtain.c @@ -310,6 +310,8 @@ static void RtemsSemReqObtain_Pre_Id_Prepare( RtemsSemReqObtain_Pre_Id state ) { + (void) ctx; + switch ( state ) { case RtemsSemReqObtain_Pre_Id_Valid: { /* diff --git a/testsuites/validation/tc-sem-performance.c b/testsuites/validation/tc-sem-performance.c index 5861e3ee8e..6a2844ce5e 100644 --- a/testsuites/validation/tc-sem-performance.c +++ b/testsuites/validation/tc-sem-performance.c @@ -274,6 +274,9 @@ static bool RtemsSemReqPerfMtxPiObtain_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); ReleaseMutex( ctx->mutex_id ); @@ -347,6 +350,9 @@ static bool RtemsSemReqPerfMtxPiRelease_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); return tic == toc; @@ -430,6 +436,9 @@ static bool RtemsSemReqPerfMtxPiReleaseOne_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_SUCCESSFUL ); SetSelfPriority( PRIO_NORMAL ); @@ -626,6 +635,8 @@ static bool RtemsSemReqPerfMtxPiReleasePreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_SUCCESSFUL ); *delta = ctx->end - ctx->begin; @@ -696,6 +707,9 @@ static bool RtemsSemReqPerfMtxPiTry_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_UNSATISFIED ); return tic == toc; @@ -787,6 +801,8 @@ static bool RtemsSemReqPerfMtxPiWaitForever_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_SUCCESSFUL ); *delta = ctx->end - ctx->begin; @@ -876,6 +892,8 @@ static bool RtemsSemReqPerfMtxPiWaitTimed_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc( ctx->status, RTEMS_SUCCESSFUL ); *delta = ctx->end - ctx->begin; diff --git a/testsuites/validation/tc-sem-release.c b/testsuites/validation/tc-sem-release.c index 1e9c2091c0..9fcec4bd0d 100644 --- a/testsuites/validation/tc-sem-release.c +++ b/testsuites/validation/tc-sem-release.c @@ -288,6 +288,8 @@ static void RtemsSemReqRelease_Pre_Id_Prepare( RtemsSemReqRelease_Pre_Id state ) { + (void) ctx; + switch ( state ) { case RtemsSemReqRelease_Pre_Id_Valid: { /* diff --git a/testsuites/validation/tc-sem-set-priority.c b/testsuites/validation/tc-sem-set-priority.c index fc4501b6fa..fa18e804a2 100644 --- a/testsuites/validation/tc-sem-set-priority.c +++ b/testsuites/validation/tc-sem-set-priority.c @@ -786,6 +786,8 @@ static void RtemsSemReqSetPriority_Teardown( RtemsSemReqSetPriority_Context *ctx ) { + (void) ctx; + RestoreRunnerPriority(); } diff --git a/testsuites/validation/tc-sem-uni.c b/testsuites/validation/tc-sem-uni.c index 04fec2009c..d504dec9ea 100644 --- a/testsuites/validation/tc-sem-uni.c +++ b/testsuites/validation/tc-sem-uni.c @@ -123,6 +123,8 @@ static void ObtainReleaseMrsPTask( rtems_task_argument arg ) static void RtemsSemValUni_Setup( RtemsSemValUni_Context *ctx ) { + (void) ctx; + SetSelfPriority( PRIO_NORMAL ); } @@ -136,6 +138,8 @@ static void RtemsSemValUni_Setup_Wrap( void *arg ) static void RtemsSemValUni_Teardown( RtemsSemValUni_Context *ctx ) { + (void) ctx; + RestoreRunnerPriority(); } diff --git a/testsuites/validation/tc-signal-send.c b/testsuites/validation/tc-signal-send.c index aedcec5e47..bde7a9f7c7 100644 --- a/testsuites/validation/tc-signal-send.c +++ b/testsuites/validation/tc-signal-send.c @@ -254,6 +254,8 @@ static void WorkerDone( const Context *ctx ) if ( rtems_scheduler_get_processor_maximum() > 1 ) { SendEvents( ctx->runner_id, EVENT_WORKER_DONE ); } +#else + (void) ctx; #endif } diff --git a/testsuites/validation/tc-task-construct.c b/testsuites/validation/tc-task-construct.c index 9110249b03..a23a1e2d53 100644 --- a/testsuites/validation/tc-task-construct.c +++ b/testsuites/validation/tc-task-construct.c @@ -1381,6 +1381,8 @@ static void RtemsTaskReqConstruct_Post_FloatingPoint_Check( RtemsTaskReqConstruct_Post_FloatingPoint state ) { + (void) ctx; + switch ( state ) { case RtemsTaskReqConstruct_Post_FloatingPoint_Yes: { /* diff --git a/testsuites/validation/tc-task-delete.c b/testsuites/validation/tc-task-delete.c index 7efef67a05..a4128c3942 100644 --- a/testsuites/validation/tc-task-delete.c +++ b/testsuites/validation/tc-task-delete.c @@ -887,6 +887,9 @@ static void ThreadDelete( rtems_tcb *executing, rtems_tcb *deleted ) static void ThreadRestart( rtems_tcb *executing, rtems_tcb *restarted ) { + (void) executing; + (void) restarted; + Context *ctx; ctx = T_fixture_context(); diff --git a/testsuites/validation/tc-task-exit.c b/testsuites/validation/tc-task-exit.c index 46fff0aab9..3afa53f72c 100644 --- a/testsuites/validation/tc-task-exit.c +++ b/testsuites/validation/tc-task-exit.c @@ -412,6 +412,9 @@ static void ThreadDelete( rtems_tcb *executing, rtems_tcb *deleted ) static void ThreadRestart( rtems_tcb *executing, rtems_tcb *restarted ) { + (void) executing; + (void) restarted; + Context *ctx; ctx = T_fixture_context(); diff --git a/testsuites/validation/tc-task-is-suspended.c b/testsuites/validation/tc-task-is-suspended.c index d61c14f560..0475911241 100644 --- a/testsuites/validation/tc-task-is-suspended.c +++ b/testsuites/validation/tc-task-is-suspended.c @@ -176,6 +176,8 @@ static const char * const * const RtemsTaskReqIsSuspended_PreDesc[] = { static void Worker( rtems_task_argument arg ) { + (void) arg; + while ( true ) { /* Do nothing */ } diff --git a/testsuites/validation/tc-task-mode.c b/testsuites/validation/tc-task-mode.c index ac045e4176..fa576f3225 100644 --- a/testsuites/validation/tc-task-mode.c +++ b/testsuites/validation/tc-task-mode.c @@ -1235,6 +1235,8 @@ static void RtemsTaskReqMode_Action( RtemsTaskReqMode_Context *ctx ) static void RtemsTaskReqMode_Cleanup( RtemsTaskReqMode_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_mode mode; diff --git a/testsuites/validation/tc-task-performance.c b/testsuites/validation/tc-task-performance.c index 3fac8f4f4e..a07962112a 100644 --- a/testsuites/validation/tc-task-performance.c +++ b/testsuites/validation/tc-task-performance.c @@ -189,6 +189,8 @@ static void RtemsTaskValPerf_Setup_Context( RtemsTaskValPerf_Context *ctx ) */ static void RtemsTaskValPerf_Setup( RtemsTaskValPerf_Context *ctx ) { + (void) ctx; + SetSelfPriority( PRIO_NORMAL ); } @@ -206,6 +208,8 @@ static void RtemsTaskValPerf_Setup_Wrap( void *arg ) */ static void RtemsTaskValPerf_Teardown( RtemsTaskValPerf_Context *ctx ) { + (void) ctx; + RestoreRunnerPriority(); } @@ -258,6 +262,9 @@ static bool RtemsTaskReqPerfConstruct_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); DeleteTask( ctx->worker_id ); @@ -327,6 +334,9 @@ static bool RtemsTaskReqPerfRestart_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); return tic == toc; @@ -408,6 +418,8 @@ static bool RtemsTaskReqPerfRestartPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; @@ -492,6 +504,8 @@ static bool RtemsTaskReqPerfRestartSelf_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; @@ -656,6 +670,9 @@ static bool RtemsTaskReqPerfSetSchedulerNop_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); return tic == toc; @@ -958,6 +975,9 @@ static bool RtemsTaskReqPerfStart_Teardown( unsigned int retry ) { + (void) delta; + (void) retry; + T_quiet_rsc_success( ctx->status ); DeleteTask( ctx->worker_id ); @@ -1037,6 +1057,8 @@ static bool RtemsTaskReqPerfStartPreempt_Teardown( unsigned int retry ) { + (void) retry; + T_quiet_rsc_success( ctx->status ); *delta = ctx->end - ctx->begin; diff --git a/testsuites/validation/tc-task-restart.c b/testsuites/validation/tc-task-restart.c index 1987709048..3a06ae6d99 100644 --- a/testsuites/validation/tc-task-restart.c +++ b/testsuites/validation/tc-task-restart.c @@ -893,6 +893,9 @@ static void ThreadDelete( rtems_tcb *executing, rtems_tcb *deleted ) static void ThreadRestart( rtems_tcb *executing, rtems_tcb *restarted ) { + (void) executing; + (void) restarted; + Context *ctx; ctx = T_fixture_context(); diff --git a/testsuites/validation/tc-task-resume.c b/testsuites/validation/tc-task-resume.c index d440b52bd5..636758f832 100644 --- a/testsuites/validation/tc-task-resume.c +++ b/testsuites/validation/tc-task-resume.c @@ -176,6 +176,8 @@ static const char * const * const RtemsTaskReqResume_PreDesc[] = { static void Worker( rtems_task_argument arg ) { + (void) arg; + while ( true ) { /* Do nothing */ } diff --git a/testsuites/validation/tc-task-set-priority.c b/testsuites/validation/tc-task-set-priority.c index 4094aaedfb..c4bea4b880 100644 --- a/testsuites/validation/tc-task-set-priority.c +++ b/testsuites/validation/tc-task-set-priority.c @@ -262,6 +262,8 @@ static const char * const * const RtemsTaskReqSetPriority_PreDesc[] = { static void Worker( rtems_task_argument arg ) { + (void) arg; + (void) ReceiveAnyEvents(); (void) ReceiveAnyEvents(); } @@ -570,6 +572,8 @@ static void RtemsTaskReqSetPriority_Setup( RtemsTaskReqSetPriority_Context *ctx ) { + (void) ctx; + SetSelfPriority( PRIO_ULTRA_HIGH ); } @@ -586,6 +590,8 @@ static void RtemsTaskReqSetPriority_Teardown( RtemsTaskReqSetPriority_Context *ctx ) { + (void) ctx; + RestoreRunnerPriority(); } diff --git a/testsuites/validation/tc-task-storage-size.c b/testsuites/validation/tc-task-storage-size.c index 29ac53c237..d34579f370 100644 --- a/testsuites/validation/tc-task-storage-size.c +++ b/testsuites/validation/tc-task-storage-size.c @@ -176,6 +176,8 @@ static const char * const * const RtemsTaskReqStorageSize_PreDesc[] = { static void Worker( rtems_task_argument arg ) { + (void) arg; + while ( true ) { /* Do nothing */ } diff --git a/testsuites/validation/tc-task-suspend.c b/testsuites/validation/tc-task-suspend.c index 123e223fb9..4282c32c6b 100644 --- a/testsuites/validation/tc-task-suspend.c +++ b/testsuites/validation/tc-task-suspend.c @@ -176,6 +176,8 @@ static const char * const * const RtemsTaskReqSuspend_PreDesc[] = { static void Worker( rtems_task_argument arg ) { + (void) arg; + while ( true ) { /* Do nothing */ } diff --git a/testsuites/validation/tc-task-wake-when.c b/testsuites/validation/tc-task-wake-when.c index bb31fded26..7ce405cf68 100644 --- a/testsuites/validation/tc-task-wake-when.c +++ b/testsuites/validation/tc-task-wake-when.c @@ -267,6 +267,8 @@ static void RtemsTaskReqWakeWhen_Pre_TODSet_Prepare( RtemsTaskReqWakeWhen_Pre_TODSet state ) { + (void) ctx; + rtems_status_code sc; rtems_time_of_day tod; diff --git a/testsuites/validation/tc-timer-cancel.c b/testsuites/validation/tc-timer-cancel.c index 3030045e9c..df0cce80c1 100644 --- a/testsuites/validation/tc-timer-cancel.c +++ b/testsuites/validation/tc-timer-cancel.c @@ -275,6 +275,8 @@ static void TimerServiceRoutine( void *user_data ) { + (void) timer_id; + RtemsTimerReqCancel_Context *ctx = user_data; ++( ctx->invocations ); } @@ -617,6 +619,8 @@ static void RtemsTimerReqCancel_Post_State_Check( static void RtemsTimerReqCancel_Setup( RtemsTimerReqCancel_Context *ctx ) { + (void) ctx; + rtems_status_code status; status = rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, @@ -641,6 +645,8 @@ static void RtemsTimerReqCancel_Setup_Wrap( void *arg ) */ static void RtemsTimerReqCancel_Teardown( RtemsTimerReqCancel_Context *ctx ) { + (void) ctx; + DeleteTimerServer(); UnsetClock(); } diff --git a/testsuites/validation/tc-timer-create.c b/testsuites/validation/tc-timer-create.c index 416f5401d0..d164b44dee 100644 --- a/testsuites/validation/tc-timer-create.c +++ b/testsuites/validation/tc-timer-create.c @@ -207,6 +207,8 @@ static const char * const * const RtemsTimerReqCreate_PreDesc[] = { static rtems_status_code Create( void *arg, uint32_t *id ) { + (void) arg; + return rtems_timer_create( rtems_build_name( 'S', 'I', 'Z', 'E' ), id ); } @@ -215,6 +217,8 @@ static void RtemsTimerReqCreate_Pre_Name_Prepare( RtemsTimerReqCreate_Pre_Name state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqCreate_Pre_Name_Valid: { /* diff --git a/testsuites/validation/tc-timer-fire-after.c b/testsuites/validation/tc-timer-fire-after.c index 27c27523cb..80071c9078 100644 --- a/testsuites/validation/tc-timer-fire-after.c +++ b/testsuites/validation/tc-timer-fire-after.c @@ -379,6 +379,8 @@ static void TimerServiceRoutine( void *user_data ) { + (void) timer_id; + RtemsTimerReqFireAfter_Context *ctx = user_data; ++( ctx->invocations ); ctx->routine_user_data = user_data; @@ -902,6 +904,8 @@ static void RtemsTimerReqFireAfter_Post_UserData_Check( static void RtemsTimerReqFireAfter_Setup( RtemsTimerReqFireAfter_Context *ctx ) { + (void) ctx; + rtems_status_code status; status = rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, @@ -928,6 +932,8 @@ static void RtemsTimerReqFireAfter_Teardown( RtemsTimerReqFireAfter_Context *ctx ) { + (void) ctx; + DeleteTimerServer(); UnsetClock(); } diff --git a/testsuites/validation/tc-timer-fire-when.c b/testsuites/validation/tc-timer-fire-when.c index 92bd505a41..422d0fb2c9 100644 --- a/testsuites/validation/tc-timer-fire-when.c +++ b/testsuites/validation/tc-timer-fire-when.c @@ -412,6 +412,8 @@ static void TimerServiceRoutine( void *user_data ) { + (void) timer_id; + RtemsTimerReqFireWhen_Context *ctx = user_data; ++( ctx->invocations ); ctx->routine_user_data = user_data; @@ -995,6 +997,8 @@ static void RtemsTimerReqFireWhen_Post_UserData_Check( static void RtemsTimerReqFireWhen_Setup( RtemsTimerReqFireWhen_Context *ctx ) { + (void) ctx; + rtems_status_code status; status = rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, @@ -1021,6 +1025,8 @@ static void RtemsTimerReqFireWhen_Teardown( RtemsTimerReqFireWhen_Context *ctx ) { + (void) ctx; + DeleteTimerServer(); UnsetClock(); } diff --git a/testsuites/validation/tc-timer-initiate-server.c b/testsuites/validation/tc-timer-initiate-server.c index 7a21a3a10b..c70f993483 100644 --- a/testsuites/validation/tc-timer-initiate-server.c +++ b/testsuites/validation/tc-timer-initiate-server.c @@ -363,6 +363,8 @@ static void RtemsTimerReqInitiateServer_Pre_Started_Prepare( RtemsTimerReqInitiateServer_Pre_Started state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqInitiateServer_Pre_Started_Yes: { /* @@ -485,6 +487,8 @@ static void RtemsTimerReqInitiateServer_Post_Started_Check( RtemsTimerReqInitiateServer_Post_Started state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqInitiateServer_Post_Started_Yes: { /* @@ -625,6 +629,8 @@ static void RtemsTimerReqInitiateServer_Teardown( RtemsTimerReqInitiateServer_Context *ctx ) { + (void) ctx; + DeleteTimerServer(); } diff --git a/testsuites/validation/tc-timer-reset.c b/testsuites/validation/tc-timer-reset.c index 709b9fe8a5..02de0f5c37 100644 --- a/testsuites/validation/tc-timer-reset.c +++ b/testsuites/validation/tc-timer-reset.c @@ -378,6 +378,8 @@ static void TimerServiceRoutineA( void *user_data ) { + (void) timer_id; + RtemsTimerReqReset_Context *ctx = *(RtemsTimerReqReset_Context **) user_data; ++( ctx->invocations_a ); @@ -389,6 +391,8 @@ static void TimerServiceRoutineB( void *user_data ) { + (void) timer_id; + RtemsTimerReqReset_Context *ctx = *(RtemsTimerReqReset_Context **) user_data; ++( ctx->invocations_b ); @@ -400,6 +404,8 @@ static void RtemsTimerReqReset_Pre_Id_Prepare( RtemsTimerReqReset_Pre_Id state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqReset_Pre_Id_Valid: { /* @@ -427,6 +433,8 @@ static void RtemsTimerReqReset_Pre_Context_Prepare( RtemsTimerReqReset_Pre_Context state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqReset_Pre_Context_None: { /* @@ -850,6 +858,8 @@ static void RtemsTimerReqReset_Post_UserData_Check( static void RtemsTimerReqReset_Setup( RtemsTimerReqReset_Context *ctx ) { + (void) ctx; + rtems_status_code status; status = rtems_timer_initiate_server( RTEMS_TIMER_SERVER_DEFAULT_PRIORITY, @@ -874,6 +884,8 @@ static void RtemsTimerReqReset_Setup_Wrap( void *arg ) */ static void RtemsTimerReqReset_Teardown( RtemsTimerReqReset_Context *ctx ) { + (void) ctx; + DeleteTimerServer(); UnsetClock(); } diff --git a/testsuites/validation/tc-timer-server-fire-after.c b/testsuites/validation/tc-timer-server-fire-after.c index 3ee91d8461..2c35f5373a 100644 --- a/testsuites/validation/tc-timer-server-fire-after.c +++ b/testsuites/validation/tc-timer-server-fire-after.c @@ -404,6 +404,8 @@ static void TimerServiceRoutine( void *user_data ) { + (void) timer_id; + RtemsTimerReqServerFireAfter_Context *ctx = user_data; ++( ctx->invocations ); ctx->routine_user_data = user_data; @@ -427,6 +429,8 @@ static void RtemsTimerReqServerFireAfter_Pre_Server_Prepare( RtemsTimerReqServerFireAfter_Pre_Server state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqServerFireAfter_Pre_Server_Init: { /* @@ -1009,6 +1013,8 @@ static void RtemsTimerReqServerFireAfter_Teardown( RtemsTimerReqServerFireAfter_Context *ctx ) { + (void) ctx; + UnsetClock(); } diff --git a/testsuites/validation/tc-timer-server-fire-when.c b/testsuites/validation/tc-timer-server-fire-when.c index d9c5ba8221..8712966c18 100644 --- a/testsuites/validation/tc-timer-server-fire-when.c +++ b/testsuites/validation/tc-timer-server-fire-when.c @@ -423,6 +423,8 @@ static void TimerServiceRoutine( void *user_data ) { + (void) timer_id; + RtemsTimerReqServerFireWhen_Context *ctx = user_data; ++( ctx->invocations ); ctx->routine_user_data = user_data; @@ -433,6 +435,8 @@ static void RtemsTimerReqServerFireWhen_Pre_Server_Prepare( RtemsTimerReqServerFireWhen_Pre_Server state ) { + (void) ctx; + switch ( state ) { case RtemsTimerReqServerFireWhen_Pre_Server_Init: { /* @@ -1056,6 +1060,8 @@ static void RtemsTimerReqServerFireWhen_Teardown( RtemsTimerReqServerFireWhen_Context *ctx ) { + (void) ctx; + UnsetClock(); } diff --git a/testsuites/validation/tc-timer.c b/testsuites/validation/tc-timer.c index d33ad6b440..8de9fbc4e1 100644 --- a/testsuites/validation/tc-timer.c +++ b/testsuites/validation/tc-timer.c @@ -107,6 +107,9 @@ typedef RtemsTimerValTimer_Context Context; static void Timer( rtems_id timer, void *arg ) { + (void) arg; + (void) timer; + Context *ctx; unsigned int *counter; diff --git a/testsuites/validation/tc-userext-create.c b/testsuites/validation/tc-userext-create.c index a15ccf6c1a..77741775b1 100644 --- a/testsuites/validation/tc-userext-create.c +++ b/testsuites/validation/tc-userext-create.c @@ -210,6 +210,8 @@ static const char * const * const RtemsUserextReqCreate_PreDesc[] = { static rtems_status_code Create( void *arg, uint32_t *id ) { + (void) arg; + static const rtems_extensions_table table; return rtems_extension_create( @@ -544,6 +546,8 @@ static inline RtemsUserextReqCreate_Entry RtemsUserextReqCreate_PopEntry( RtemsUserextReqCreate_Context *ctx ) { + (void) ctx; + size_t index; index = ctx->Map.index; diff --git a/testsuites/validation/tc-userext.c b/testsuites/validation/tc-userext.c index 192be30669..e4f4c88d4b 100644 --- a/testsuites/validation/tc-userext.c +++ b/testsuites/validation/tc-userext.c @@ -548,11 +548,15 @@ void *IdleBody( uintptr_t arg ) static void RtemsUserextValUserext_Setup( void *ctx ) { + (void) ctx; + SetSelfPriority( PRIO_NORMAL ); } static void RtemsUserextValUserext_Teardown( void *ctx ) { + (void) ctx; + RestoreRunnerPriority(); } diff --git a/testsuites/validation/tr-event-constant.c b/testsuites/validation/tr-event-constant.c index a0327973de..5ec20cf8ef 100644 --- a/testsuites/validation/tr-event-constant.c +++ b/testsuites/validation/tr-event-constant.c @@ -210,6 +210,8 @@ static void RtemsEventValEventConstant_Action_0( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + /* No action */ /* @@ -237,6 +239,8 @@ static void RtemsEventValEventConstant_Action_1( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -266,6 +270,8 @@ static void RtemsEventValEventConstant_Action_2( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -296,6 +302,8 @@ static void RtemsEventValEventConstant_Action_3( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -326,6 +334,8 @@ static void RtemsEventValEventConstant_Action_4( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -403,6 +413,8 @@ static void RtemsEventValEventConstant_Action_7( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -462,6 +474,8 @@ static void RtemsEventValEventConstant_Action_9( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -509,6 +523,8 @@ static void RtemsEventValEventConstant_Action_11( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -568,6 +584,8 @@ static void RtemsEventValEventConstant_Action_13( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -628,6 +646,8 @@ static void RtemsEventValEventConstant_Action_15( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; @@ -657,6 +677,8 @@ static void RtemsEventValEventConstant_Action_16( RtemsEventValEventConstant_Context *ctx ) { + (void) ctx; + rtems_status_code sc; rtems_event_set out; diff --git a/testsuites/validation/tr-event-send-receive.c b/testsuites/validation/tr-event-send-receive.c index 85d0040615..47027f1eca 100644 --- a/testsuites/validation/tr-event-send-receive.c +++ b/testsuites/validation/tr-event-send-receive.c @@ -389,6 +389,8 @@ static bool IntendsToBlockForEvent( Context *ctx, Thread_Wait_flags flags ) static bool IsReady( Context *ctx, Thread_Wait_flags flags ) { + (void) ctx; + return flags == THREAD_WAIT_STATE_READY; } diff --git a/testsuites/validation/tr-sem-seize-wait.c b/testsuites/validation/tr-sem-seize-wait.c index bbc1cfd252..559e8f6cb2 100644 --- a/testsuites/validation/tr-sem-seize-wait.c +++ b/testsuites/validation/tr-sem-seize-wait.c @@ -264,6 +264,8 @@ static void ScoreSemReqSeizeWait_Post_Timer_Check( ScoreSemReqSeizeWait_Post_Timer state ) { + (void) ctx; + switch ( state ) { case ScoreSemReqSeizeWait_Post_Timer_Optional: { /* @@ -303,6 +305,8 @@ static void ScoreSemReqSeizeWait_Prepare( ScoreSemReqSeizeWait_Context *ctx ) static void ScoreSemReqSeizeWait_Action( ScoreSemReqSeizeWait_Context *ctx ) { + (void) ctx; + /* Action performed by Status post-condition */ } diff --git a/testsuites/validation/tr-tq-enqueue-deadlock.c b/testsuites/validation/tr-tq-enqueue-deadlock.c index 7f61cbc444..076db538fe 100644 --- a/testsuites/validation/tr-tq-enqueue-deadlock.c +++ b/testsuites/validation/tr-tq-enqueue-deadlock.c @@ -204,6 +204,8 @@ static void ScoreTqReqEnqueueDeadlock_Post_Result_Check( ScoreTqReqEnqueueDeadlock_Post_Result state ) { + (void) ctx; + switch ( state ) { case ScoreTqReqEnqueueDeadlock_Post_Result_Status: { /* diff --git a/testsuites/validation/tr-tq-flush-priority-inherit.c b/testsuites/validation/tr-tq-flush-priority-inherit.c index 50352635a3..239c570ef7 100644 --- a/testsuites/validation/tr-tq-flush-priority-inherit.c +++ b/testsuites/validation/tr-tq-flush-priority-inherit.c @@ -341,6 +341,8 @@ static void ScoreTqReqFlushPriorityInherit_Post_PriorityUpdate_Check( ScoreTqReqFlushPriorityInherit_Post_PriorityUpdate state ) { + (void) ctx; + switch ( state ) { case ScoreTqReqFlushPriorityInherit_Post_PriorityUpdate_No: { /* diff --git a/testsuites/validation/tr-tq-surrender-priority-inherit.c b/testsuites/validation/tr-tq-surrender-priority-inherit.c index 10d572207a..6fde0edeff 100644 --- a/testsuites/validation/tr-tq-surrender-priority-inherit.c +++ b/testsuites/validation/tr-tq-surrender-priority-inherit.c @@ -588,6 +588,8 @@ static void SetupSticky( Context *ctx ) ); TQSetPriority( ctx->tq_ctx, NEW_OWNER_NEW_HELPER, PRIO_VERY_HIGH ); TQSetPriority( ctx->tq_ctx, PREV_OWNER, PRIO_NORMAL ); +#else + (void) ctx; #endif } @@ -675,6 +677,8 @@ static void ActionSticky( Context *ctx ) ctx->tq_ctx->worker_tcb[ NEW_OWNER ] ); ctx->priority_after = TQGetPriority( ctx->tq_ctx, PREV_OWNER ); +#else + (void) ctx; #endif } @@ -729,6 +733,8 @@ static void CleanupSticky( Context *ctx ) } T_eq_u32( rtems_scheduler_get_processor(), 0 ); +#else + (void) ctx; #endif } @@ -976,6 +982,8 @@ static void ScoreTqReqSurrenderPriorityInherit_Post_Dequeue_Check( ScoreTqReqSurrenderPriorityInherit_Post_Dequeue state ) { + (void) ctx; + switch ( state ) { case ScoreTqReqSurrenderPriorityInherit_Post_Dequeue_Priority: { /* @@ -1280,6 +1288,8 @@ static void ScoreTqReqSurrenderPriorityInherit_Teardown( ScoreTqReqSurrenderPriorityInherit_Context *ctx ) { + (void) ctx; + SetSelfScheduler( SCHEDULER_A_ID, PRIO_NORMAL ); } diff --git a/testsuites/validation/tr-tq-timeout.c b/testsuites/validation/tr-tq-timeout.c index fd4dd67278..43fe4cf0c8 100644 --- a/testsuites/validation/tr-tq-timeout.c +++ b/testsuites/validation/tr-tq-timeout.c @@ -364,6 +364,8 @@ static void ScoreTqReqTimeout_Teardown_Wrap( void *arg ) static void ScoreTqReqTimeout_Action( ScoreTqReqTimeout_Context *ctx ) { + (void) ctx; + /* * The action is performed by the `WaitState` pre-condition preparation. */ diff --git a/testsuites/validation/tx-support.c b/testsuites/validation/tx-support.c index 226fa6988e..687ddc4921 100644 --- a/testsuites/validation/tx-support.c +++ b/testsuites/validation/tx-support.c @@ -915,6 +915,8 @@ void StartDelayThreadDispatch( uint32_t cpu_index ) &delay_thread_dispatch_job ); } +#else + (void) cpu_index; #endif } @@ -932,6 +934,8 @@ void StopDelayThreadDispatch( uint32_t cpu_index ) ); _Thread_Dispatch_enable( cpu_self ); } +#else + (void) cpu_index; #endif } diff --git a/testsuites/validation/tx-thread-queue.c b/testsuites/validation/tx-thread-queue.c index dc823dee51..9d930c52dc 100644 --- a/testsuites/validation/tx-thread-queue.c +++ b/testsuites/validation/tx-thread-queue.c @@ -64,6 +64,9 @@ void TQWaitForEventsReceived( const TQContext *ctx, TQWorkerKind worker ) while ( !ctx->event_received[ worker ] ) { /* Wait */ } +#else + (void) ctx; + (void) worker; #endif } @@ -71,6 +74,9 @@ void TQWaitForExecutionStop( const TQContext *ctx, TQWorkerKind worker ) { #if defined( RTEMS_SMP ) WaitForExecutionStop( ctx->worker_id[ worker ] ); +#else + (void) ctx; + (void) worker; #endif }