mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 06:55:44 +08:00
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.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user