cpukit/libcsupport/*: Address unused parameter warnings

Add "(void) param;" annotation to address unused parameter warnings.
Found with GCC's warning -Wunused-paramter.
This commit is contained in:
Joel Sherrill
2025-09-25 16:56:29 -05:00
committed by Gedare Bloom
parent 3b5ecfc5ac
commit cf0a338520
10 changed files with 113 additions and 0 deletions

View File

@@ -52,6 +52,11 @@ static int null_handler_open(
mode_t mode
)
{
(void) iop;
(void) path;
(void) oflag;
(void) mode;
return -1;
}
@@ -60,6 +65,9 @@ static int null_handler_fstat(
struct stat *buf
)
{
(void) pathloc;
(void) buf;
return -1;
}
@@ -86,6 +94,8 @@ static void null_op_lock_or_unlock(
const rtems_filesystem_mount_table_entry_t *mt_entry
)
{
(void) mt_entry;
/* Do nothing */
}
@@ -97,6 +107,12 @@ static int null_op_mknod(
dev_t dev
)
{
(void) parentloc;
(void) name;
(void) namelen;
(void) mode;
(void) dev;
return -1;
}
@@ -105,6 +121,9 @@ static int null_op_rmnod(
const rtems_filesystem_location_info_t *loc
)
{
(void) parentloc;
(void) loc;
return -1;
}
@@ -115,6 +134,11 @@ static int null_op_link(
size_t namelen
)
{
(void) parentloc;
(void) targetloc;
(void) name;
(void) namelen;
return -1;
}
@@ -123,6 +147,9 @@ static int null_op_fchmod(
mode_t mode
)
{
(void) pathloc;
(void) mode;
return -1;
}
@@ -132,6 +159,10 @@ static int null_op_chown(
gid_t group
)
{
(void) loc;
(void) owner;
(void) group;
return -1;
}
@@ -139,6 +170,8 @@ static int null_op_clonenode(
rtems_filesystem_location_info_t *loc
)
{
(void) loc;
return -1;
}
@@ -147,6 +180,9 @@ static int null_op_mount(
const void *data
)
{
(void) mt_entry;
(void) data;
return -1;
}
@@ -154,6 +190,8 @@ static int null_op_unmount(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
(void) mt_entry;
return -1;
}
@@ -161,6 +199,8 @@ static void null_op_fsunmount_me(
rtems_filesystem_mount_table_entry_t *mt_entry
)
{
(void) mt_entry;
/* Do nothing */
}
@@ -169,6 +209,9 @@ static int null_op_utimens(
struct timespec times[2]
)
{
(void) loc;
(void) times;
return -1;
}
@@ -179,6 +222,11 @@ static int null_op_symlink(
const char *target
)
{
(void) parentloc;
(void) name;
(void) namelen;
(void) target;
return -1;
}
@@ -188,6 +236,10 @@ static ssize_t null_op_readlink(
size_t bufsize
)
{
(void) loc;
(void) buf;
(void) bufsize;
return -1;
}
@@ -199,6 +251,12 @@ static int null_op_rename(
size_t namelen
)
{
(void) oldparentloc;
(void) oldloc;
(void) newparentloc;
(void) name;
(void) namelen;
return -1;
}
@@ -207,6 +265,9 @@ static int null_op_statvfs(
struct statvfs *__restrict buf
)
{
(void) loc;
(void) buf;
return -1;
}

View File

@@ -41,6 +41,8 @@ static ssize_t _Console_simple_Write(
size_t count
)
{
(void) iop;
const char *buf;
ssize_t i;
ssize_t n;

View File

@@ -36,6 +36,8 @@ ssize_t _Console_simple_Read(
size_t count
)
{
(void) iop;
char *buf;
ssize_t i;
ssize_t n;

View File

@@ -48,6 +48,9 @@ int __gcov_execl( const char *, char *, ... );
int __gcov_execl( const char *path, char *arg, ... )
{
(void) path;
(void) arg;
rtems_set_errno_and_return_minus_one( ENOSYS );
}
@@ -55,6 +58,9 @@ int __gcov_execlp( const char *, char *, ... );
int __gcov_execlp( const char *path, char *arg, ... )
{
(void) path;
(void) arg;
rtems_set_errno_and_return_minus_one( ENOSYS );
}
@@ -62,6 +68,9 @@ int __gcov_execle( const char *, char *, ... );
int __gcov_execle( const char *path, char *arg, ... )
{
(void) path;
(void) arg;
rtems_set_errno_and_return_minus_one( ENOSYS );
}
@@ -69,6 +78,9 @@ int __gcov_execv( const char *, char *const[] );
int __gcov_execv( const char *path, char *const argv[] )
{
(void) path;
(void) argv;
rtems_set_errno_and_return_minus_one( ENOSYS );
}
@@ -76,6 +88,9 @@ int __gcov_execvp( const char *, char *const[] );
int __gcov_execvp( const char *path, char *const argv[] )
{
(void) path;
(void) argv;
rtems_set_errno_and_return_minus_one( ENOSYS );
}
@@ -83,6 +98,10 @@ int __gcov_execve( const char *, char *const[], char *const[] );
int __gcov_execve( const char *path, char *const argv[], char *const envp[] )
{
(void) path;
(void) argv;
(void) envp;
rtems_set_errno_and_return_minus_one( ENOSYS );
}

View File

@@ -48,6 +48,8 @@ void newlib_terminate_hook(
)
{
#ifdef _REENT_THREAD_LOCAL
(void) current_task;
_reclaim_reent(NULL);
#else
_reclaim_reent(current_task->libc_reent);

View File

@@ -45,6 +45,9 @@ static _READ_WRITE_RETURN_TYPE fprintf_putc_write(
_READ_WRITE_BUFSIZE_TYPE n
)
{
(void) ptr;
(void) cookie;
_READ_WRITE_RETURN_TYPE i;
_READ_WRITE_RETURN_TYPE m;

View File

@@ -59,6 +59,8 @@ static void printer_task_acquire(
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_acquire( &ctx->lock, lock_context );
}
@@ -67,6 +69,8 @@ static void printer_task_release(
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_release( &ctx->lock, lock_context );
}
@@ -75,6 +79,8 @@ static printer_task_buffer *printer_task_get_buffer(
rtems_chain_control *chain
)
{
(void) ctx;
rtems_interrupt_lock_context lock_context;
printer_task_buffer *buffer;

View File

@@ -49,6 +49,9 @@ int rtems_deviceio_open(
rtems_device_minor_number minor
)
{
(void) path;
(void) oflag;
rtems_status_code status;
rtems_libio_open_close_args_t args;

View File

@@ -332,6 +332,9 @@ deviceAcquireMutex(
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
(void) lock_context;
rtems_mutex_lock (&ctx->lock.mutex);
}
@@ -341,6 +344,8 @@ deviceReleaseMutex(
rtems_interrupt_lock_context *lock_context
)
{
(void) lock_context;
rtems_mutex_unlock (&ctx->lock.mutex);
}
@@ -1329,6 +1334,9 @@ rtems_termios_iproc_status_code rtems_termios_default_isig_handler(
struct rtems_termios_tty *tty
)
{
(void) c;
(void) tty;
return RTEMS_TERMIOS_IPROC_CONTINUE;
}
@@ -2088,6 +2096,9 @@ static int
rtems_termios_imfs_open (rtems_libio_t *iop,
const char *path, int oflag, mode_t mode)
{
(void) path;
(void) oflag;
rtems_termios_device_node *device_node;
rtems_libio_open_close_args_t args;
struct rtems_termios_tty *tty;

View File

@@ -30,6 +30,8 @@ rtems_termios_device_lock_acquire_default(
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_acquire (&ctx->lock.interrupt, lock_context);
}
@@ -39,5 +41,7 @@ rtems_termios_device_lock_release_default(
rtems_interrupt_lock_context *lock_context
)
{
(void) ctx;
rtems_interrupt_lock_release (&ctx->lock.interrupt, lock_context);
}