mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
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:
committed by
Gedare Bloom
parent
a96d3f6b49
commit
3b5ecfc5ac
@@ -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 );
|
||||
|
||||
@@ -55,5 +55,8 @@ int clock_getcpuclockid(
|
||||
clockid_t *clock_id
|
||||
)
|
||||
{
|
||||
(void) pid;
|
||||
(void) clock_id;
|
||||
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -56,6 +56,8 @@ int _kill_r(
|
||||
int sig
|
||||
)
|
||||
{
|
||||
(void) ptr;
|
||||
|
||||
return _POSIX_signals_Send( pid, sig, NULL );
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -50,5 +50,8 @@ int pthread_getcpuclockid(
|
||||
clockid_t *clock_id
|
||||
)
|
||||
{
|
||||
(void) pid;
|
||||
(void) clock_id;
|
||||
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
}
|
||||
|
||||
@@ -52,6 +52,8 @@ int sem_init(
|
||||
unsigned int value
|
||||
)
|
||||
{
|
||||
(void) pshared;
|
||||
|
||||
if ( sem == NULL ) {
|
||||
rtems_set_errno_and_return_minus_one( EINVAL );
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -47,5 +47,7 @@ int wait(
|
||||
int *stat_loc
|
||||
)
|
||||
{
|
||||
(void) stat_loc;
|
||||
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
}
|
||||
|
||||
@@ -48,5 +48,9 @@ int waitpid(
|
||||
int options
|
||||
)
|
||||
{
|
||||
(void) pid;
|
||||
(void) stat_loc;
|
||||
(void) options;
|
||||
|
||||
rtems_set_errno_and_return_minus_one( ENOSYS );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user