cpukit/posix/*: 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:35:32 -05:00
committed by Gedare Bloom
parent a96d3f6b49
commit 3b5ecfc5ac
12 changed files with 34 additions and 0 deletions

View File

@@ -54,6 +54,8 @@ static ISR_lock_Control _POSIX_signals_Alarm_lock =
static void _POSIX_signals_Alarm_TSR( Watchdog_Control *the_watchdog )
{
(void) the_watchdog;
int status;
status = kill( getpid(), SIGALRM );

View File

@@ -55,5 +55,8 @@ int clock_getcpuclockid(
clockid_t *clock_id
)
{
(void) pid;
(void) clock_id;
rtems_set_errno_and_return_minus_one( ENOSYS );
}

View File

@@ -51,6 +51,8 @@ static void _POSIX_Condition_variables_Mutex_unlock(
Thread_queue_Context *queue_context
)
{
(void) queue_context;
POSIX_Condition_variables_Control *the_cond;
int mutex_error;
@@ -75,6 +77,8 @@ static void _POSIX_Condition_variables_Enqueue_no_timeout(
Thread_queue_Context *queue_context
)
{
(void) cpu_self;
_POSIX_Condition_variables_Mutex_unlock( queue, the_thread, queue_context );
}
@@ -101,6 +105,8 @@ int _POSIX_Condition_variables_Wait_support(
clockid_t clock_id
)
{
(void) clock_id;
POSIX_Condition_variables_Control *the_cond;
unsigned long flags;
Thread_queue_Context queue_context;

View File

@@ -56,6 +56,8 @@ int _kill_r(
int sig
)
{
(void) ptr;
return _POSIX_signals_Send( pid, sig, NULL );
}
#endif

View File

@@ -48,6 +48,8 @@ int pthread_spin_destroy( pthread_spinlock_t *spinlock )
the_spinlock = _POSIX_Spinlock_Get( spinlock );
_SMP_ticket_lock_Destroy( &the_spinlock->Lock );
#else
(void) spinlock;
#endif
return 0;
}

View File

@@ -49,11 +49,15 @@ int pthread_spin_init(
int pshared
)
{
(void) pshared;
#if defined(RTEMS_SMP)
POSIX_Spinlock_Control *the_spinlock;
the_spinlock = _POSIX_Spinlock_Get( spinlock );
_SMP_ticket_lock_Initialize( &the_spinlock->Lock );
#else
(void) spinlock;
#endif
return 0;
}

View File

@@ -50,5 +50,8 @@ int pthread_getcpuclockid(
clockid_t *clock_id
)
{
(void) pid;
(void) clock_id;
rtems_set_errno_and_return_minus_one( ENOSYS );
}

View File

@@ -52,6 +52,8 @@ int sem_init(
unsigned int value
)
{
(void) pshared;
if ( sem == NULL ) {
rtems_set_errno_and_return_minus_one( EINVAL );
}

View File

@@ -117,6 +117,8 @@ void * _POSIX_Shm_Object_mmap_from_heap(
off_t off
)
{
(void) prot;
if ( shm_obj == NULL || shm_obj->handle == NULL )
return 0;

View File

@@ -106,6 +106,8 @@ void * _POSIX_Shm_Object_mmap_from_workspace(
off_t off
)
{
(void) prot;
if ( shm_obj == NULL || shm_obj->handle == NULL )
return 0;

View File

@@ -47,5 +47,7 @@ int wait(
int *stat_loc
)
{
(void) stat_loc;
rtems_set_errno_and_return_minus_one( ENOSYS );
}

View File

@@ -48,5 +48,9 @@ int waitpid(
int options
)
{
(void) pid;
(void) stat_loc;
(void) options;
rtems_set_errno_and_return_minus_one( ENOSYS );
}