mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
testsuites/mptests: Address unused parameter warnings
Add "(void) param;" annotation to address unused parameter warnings. Found with GCC's warning -Wunused-parameter.
This commit is contained in:
committed by
Gedare Bloom
parent
474b034cca
commit
d3370aa627
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_time_of_day time;
|
rtems_time_of_day time;
|
||||||
char c;
|
char c;
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_id tid;
|
rtems_id tid;
|
||||||
rtems_time_of_day time;
|
rtems_time_of_day time;
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ rtems_timer_service_routine Delayed_send_event(
|
|||||||
void *ignored_address
|
void *ignored_address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) ignored_id;
|
||||||
|
(void) ignored_address;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_16 );
|
status = rtems_event_send( Task_id[ 1 ], RTEMS_EVENT_16 );
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -110,6 +110,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_id tid;
|
rtems_id tid;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_id tid;
|
rtems_id tid;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t remote_node;
|
uint32_t remote_node;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -51,6 +51,9 @@ static rtems_timer_service_routine Stop_Test_TSR(
|
|||||||
void *ignored_address
|
void *ignored_address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) ignored_id;
|
||||||
|
(void) ignored_address;
|
||||||
|
|
||||||
Stop_Test = true;
|
Stop_Test = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,6 +61,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
Stop_Test = false;
|
Stop_Test = false;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -42,6 +42,9 @@ static rtems_timer_service_routine Stop_Test_TSR(
|
|||||||
void *ignored_address
|
void *ignored_address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) ignored_id;
|
||||||
|
(void) ignored_address;
|
||||||
|
|
||||||
Stop_Test = true;
|
Stop_Test = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -90,6 +93,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
uint32_t remote_node;
|
uint32_t remote_node;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -49,6 +49,9 @@ static rtems_timer_service_routine Stop_Test_TSR(
|
|||||||
void *ignored_address
|
void *ignored_address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) ignored_id;
|
||||||
|
(void) ignored_address;
|
||||||
|
|
||||||
Stop_Test = true;
|
Stop_Test = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,6 +59,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
uint32_t remote_node;
|
uint32_t remote_node;
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Test_task1(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
char receive_buffer[16];
|
char receive_buffer[16];
|
||||||
size_t size;
|
size_t size;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Test_task2(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
puts( "Getting SMID of semaphore" );
|
puts( "Getting SMID of semaphore" );
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_id junk_id;
|
rtems_id junk_id;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
|
|||||||
@@ -56,6 +56,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
void *bufaddr;
|
void *bufaddr;
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
printf(
|
printf(
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ rtems_task Test_task1(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
char receive_buffer[16];
|
char receive_buffer[16];
|
||||||
size_t size;
|
size_t size;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ rtems_task Test_task2(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|
||||||
puts( "Getting SMID of semaphore" );
|
puts( "Getting SMID of semaphore" );
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ rtems_timer_service_routine Delayed_send_event(
|
|||||||
void *id_ptr
|
void *id_ptr
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) timer_id;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_id id = *(rtems_id *)id_ptr;
|
rtems_id id = *(rtems_id *)id_ptr;
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@ rtems_task Test_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
uint32_t remote_node;
|
uint32_t remote_node;
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Delayed_events_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
uint32_t previous_mode;
|
uint32_t previous_mode;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
|
|||||||
@@ -58,6 +58,9 @@ static rtems_timer_service_routine Stop_Test_TSR(
|
|||||||
void *ignored_address
|
void *ignored_address
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) ignored_id;
|
||||||
|
(void) ignored_address;
|
||||||
|
|
||||||
Stop_Test = true;
|
Stop_Test = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +68,8 @@ rtems_task Init(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
rtems_task_priority previous_priority;
|
rtems_task_priority previous_priority;
|
||||||
|
|
||||||
|
|||||||
@@ -45,6 +45,8 @@ rtems_task Partition_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t yield_count;
|
uint32_t yield_count;
|
||||||
|
|||||||
@@ -44,6 +44,8 @@ rtems_task Semaphore_task(
|
|||||||
rtems_task_argument argument
|
rtems_task_argument argument
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
(void) argument;
|
||||||
|
|
||||||
uint32_t count;
|
uint32_t count;
|
||||||
rtems_status_code status;
|
rtems_status_code status;
|
||||||
uint32_t yield_count;
|
uint32_t yield_count;
|
||||||
|
|||||||
Reference in New Issue
Block a user