mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 06:58:19 +00: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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user