cpukit/libmisc/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.

libmisc/shell was in a previous patch.
This commit is contained in:
Joel Sherrill
2025-09-26 22:38:34 +00:00
committed by Gedare Bloom
parent 128bee9104
commit 32170f83a8
10 changed files with 56 additions and 2 deletions
+4
View File
@@ -212,6 +212,8 @@ rtems_capture_cli_disable (int argc RC_UNUSED,
static bool
rtems_capture_cli_print_task (rtems_tcb *tcb, void *arg)
{
(void) arg;
rtems_task_priority ceiling = rtems_capture_watch_get_ceiling ();
rtems_task_priority floor = rtems_capture_watch_get_floor ();
rtems_task_priority priority;
@@ -267,6 +269,8 @@ rtems_capture_cli_print_task (rtems_tcb *tcb, void *arg)
static bool
rtems_capture_cli_count_tasks (rtems_tcb *tcb, void *arg)
{
(void) tcb;
uint32_t *task_count = arg;
++(*task_count);
return false;
+4
View File
@@ -299,6 +299,8 @@ rtems_capture_find_control (rtems_name name, rtems_id id)
static bool
rtems_capture_initialize_control (rtems_tcb *tcb, void *arg)
{
(void) arg;
if (tcb->Capture.control == NULL)
{
rtems_name name = rtems_build_name(0, 0, 0, 0);
@@ -773,6 +775,8 @@ rtems_capture_set_monitor (bool enable)
static bool
rtems_capture_flush_tcb (rtems_tcb *tcb, void *arg)
{
(void) arg;
tcb->Capture.flags &= ~RTEMS_CAPTURE_TRACED;
return false;
}
+2
View File
@@ -52,6 +52,8 @@ static bool CPU_usage_Per_thread_handler(
void *arg
)
{
(void) arg;
const Scheduler_Control *scheduler;
ISR_lock_Context state_lock_context;
ISR_lock_Context scheduler_lock_context;
+3 -1
View File
@@ -176,8 +176,10 @@ print_time(rtems_cpu_usage_data* data,
* Count the number of tasks.
*/
static bool
task_counter(Thread_Control *thrad, void* arg)
task_counter(Thread_Control *thread, void* arg)
{
(void) thread;
rtems_cpu_usage_data* data = (rtems_cpu_usage_data*) arg;
++data->task_count;
+2
View File
@@ -56,6 +56,8 @@ rtems_monitor_config_canonical(
const void *config_void
)
{
(void) config_void;
const rtems_api_configuration_table *r;
r = rtems_configuration_get_rtems_api_configuration();
+4 -1
View File
@@ -306,7 +306,10 @@ rtems_monitor_reset_cmd(
bool verbose
)
{
(void) argc;
(void) argv;
(void) command_arg;
(void) verbose;
}
void
+24
View File
@@ -53,6 +53,8 @@ const char *serial_mouse_type;
static int serial_mouse_l_rint(int c, struct rtems_termios_tty *tp)
{
(void) tp;
unsigned char buf = c;
/* call mouse_parser( void *ptr, char *buffer, int size ) */
@@ -81,6 +83,9 @@ rtems_device_driver serial_mouse_initialize(
void *arg
)
{
(void) minor;
(void) arg;
bsp_get_serial_mouse_device(
&serial_mouse_device,
&serial_mouse_type
@@ -102,6 +107,10 @@ rtems_device_driver serial_mouse_open(
void *args
)
{
(void) major;
(void) minor;
(void) args;
struct termios termios_attr;
int status;
int disc = 6;
@@ -154,6 +163,10 @@ rtems_device_driver serial_mouse_close(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
close( serial_mouse_fd );
return RTEMS_SUCCESSFUL;
@@ -165,6 +178,10 @@ rtems_device_driver serial_mouse_read(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
return RTEMS_SUCCESSFUL;
}
@@ -175,6 +192,10 @@ rtems_device_driver serial_mouse_write(
void *arg
)
{
(void) major;
(void) minor;
(void) arg;
return RTEMS_SUCCESSFUL;
}
@@ -185,6 +206,9 @@ rtems_device_driver serial_mouse_control(
void *arg
)
{
(void) major;
(void) minor;
rtems_libio_ioctl_args_t *args = (rtems_libio_ioctl_args_t *)arg;
switch( args->command ) {
@@ -150,6 +150,11 @@ rtems_fdt_get_value32 (const char* path,
size_t size,
uint32_t* value)
{
(void) path;
(void) property;
(void) size;
(void) value;
return true;
}
+2
View File
@@ -1177,6 +1177,8 @@ rtems_fdt_get_value (const char* path,
size_t size,
uintptr_t* value)
{
(void) size;
rtems_fdt_handle fdt;
const void* prop;
int node;
+6
View File
@@ -207,6 +207,8 @@ bool rtems_stack_checker_create_extension(
void rtems_stack_checker_begin_extension( Thread_Control *executing )
{
(void) executing;
Per_CPU_Control *cpu_self;
uint32_t cpu_self_index;
Stack_Control *stack;
@@ -314,6 +316,8 @@ void rtems_stack_checker_reporter_quiet(
bool pattern_ok
)
{
(void) pattern_ok;
rtems_fatal(
RTEMS_FATAL_SOURCE_STACK_CHECKER,
running->Object.name.name_u32
@@ -328,6 +332,8 @@ void rtems_stack_checker_switch_extension(
Thread_Control *heir
)
{
(void) heir;
bool sp_ok;
bool pattern_ok;
const Stack_Control *stack;