From 38bccd7fd0f30438182f7638f5a151f2cd96e0fc Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Sun, 20 Jan 2019 10:40:38 -0800 Subject: Sprinkle `LTP_ATTRIBUTE_UNUSED` macro on unused vars/params This fixes `-Wunused` issues. Signed-off-by: Enji Cooper --- .../conformance/definitions/pthread_h/4-1-buildonly.c | 3 ++- .../open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c | 3 ++- .../open_posix_testsuite/conformance/interfaces/mq_receive/13-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/mq_send/12-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/mq_send/5-2.c | 2 +- .../conformance/interfaces/mq_timedreceive/18-1.c | 2 +- .../conformance/interfaces/mq_timedreceive/18-2.c | 2 +- .../conformance/interfaces/mq_timedreceive/5-2.c | 2 +- .../conformance/interfaces/mq_timedreceive/5-3.c | 2 +- .../conformance/interfaces/mq_timedreceive/8-1.c | 2 +- .../conformance/interfaces/mq_timedsend/12-1.c | 4 ++-- .../conformance/interfaces/mq_timedsend/15-1.c | 2 +- .../conformance/interfaces/mq_timedsend/16-1.c | 2 +- .../conformance/interfaces/mq_timedsend/20-1.c | 2 +- .../conformance/interfaces/mq_timedsend/5-1.c | 2 +- .../conformance/interfaces/mq_timedsend/5-2.c | 2 +- .../conformance/interfaces/mq_timedsend/5-3.c | 2 +- .../open_posix_testsuite/conformance/interfaces/munmap/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/munmap/1-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c | 2 +- .../open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/nanosleep/5-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c | 2 +- .../conformance/interfaces/pthread_atfork/1-2.c | 2 +- .../conformance/interfaces/pthread_atfork/2-2.c | 2 +- .../conformance/interfaces/pthread_atfork/3-2.c | 2 +- .../conformance/interfaces/pthread_atfork/3-3.c | 6 +++--- .../conformance/interfaces/pthread_atfork/4-1.c | 2 +- .../conformance/interfaces/pthread_attr_init/3-1.c | 2 +- .../conformance/interfaces/pthread_attr_setinheritsched/2-2.c | 2 +- .../conformance/interfaces/pthread_attr_setinheritsched/2-3.c | 2 +- .../conformance/interfaces/pthread_attr_setinheritsched/2-4.c | 2 +- .../conformance/interfaces/pthread_attr_setschedparam/1-3.c | 2 +- .../conformance/interfaces/pthread_attr_setschedparam/1-4.c | 2 +- .../conformance/interfaces/pthread_attr_setschedpolicy/2-1.c | 2 +- .../conformance/interfaces/pthread_barrier_init/4-1.c | 2 +- .../conformance/interfaces/pthread_barrier_wait/1-1.c | 2 +- .../conformance/interfaces/pthread_barrier_wait/3-1.c | 2 +- .../conformance/interfaces/pthread_barrier_wait/3-2.c | 2 +- .../conformance/interfaces/pthread_cancel/2-2.c | 4 ++-- .../conformance/interfaces/pthread_cancel/2-3.c | 4 ++-- .../conformance/interfaces/pthread_cleanup_pop/1-3.c | 6 +++--- .../conformance/interfaces/pthread_cond_broadcast/1-1.c | 2 +- .../conformance/interfaces/pthread_cond_broadcast/2-1.c | 2 +- .../conformance/interfaces/pthread_cond_broadcast/2-2.c | 2 +- .../conformance/interfaces/pthread_cond_broadcast/2-3.c | 4 ++-- .../conformance/interfaces/pthread_cond_broadcast/4-1.c | 2 +- .../conformance/interfaces/pthread_cond_broadcast/4-2.c | 8 ++++---- .../conformance/interfaces/pthread_cond_destroy/2-1.c | 2 +- .../conformance/interfaces/pthread_cond_signal/1-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_signal/1-2.c | 2 +- .../conformance/interfaces/pthread_cond_signal/2-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_signal/2-2.c | 2 +- .../conformance/interfaces/pthread_cond_signal/4-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_signal/4-2.c | 8 ++++---- .../conformance/interfaces/pthread_cond_wait/1-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_wait/2-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_wait/2-3.c | 8 ++++---- .../conformance/interfaces/pthread_cond_wait/3-1.c | 4 ++-- .../conformance/interfaces/pthread_cond_wait/4-1.c | 8 ++++---- .../conformance/interfaces/pthread_equal/2-1.c | 4 ++-- .../conformance/interfaces/pthread_exit/1-2.c | 2 +- .../conformance/interfaces/pthread_exit/2-2.c | 2 +- .../conformance/interfaces/pthread_exit/3-1.c | 4 ++-- .../conformance/interfaces/pthread_exit/3-2.c | 2 +- .../conformance/interfaces/pthread_exit/4-1.c | 2 +- .../conformance/interfaces/pthread_exit/6-1.c | 2 +- .../conformance/interfaces/pthread_join/4-1.c | 2 +- .../conformance/interfaces/pthread_join/6-3.c | 8 ++++---- .../conformance/interfaces/pthread_key_create/3-1.c | 2 +- .../conformance/interfaces/pthread_key_delete/2-1.c | 2 +- .../conformance/interfaces/pthread_kill/6-1.c | 2 +- .../conformance/interfaces/pthread_kill/8-1.c | 6 +++--- .../conformance/interfaces/pthread_mutex_init/1-2.c | 6 +++--- .../conformance/interfaces/pthread_mutex_init/3-2.c | 6 +++--- .../conformance/interfaces/pthread_mutex_lock/1-1.c | 2 +- .../conformance/interfaces/pthread_mutex_lock/3-1.c | 6 +++--- .../conformance/interfaces/pthread_mutex_lock/4-1.c | 2 +- .../conformance/interfaces/pthread_mutex_lock/5-1.c | 4 ++-- .../conformance/interfaces/pthread_mutex_timedlock/1-1.c | 2 +- .../conformance/interfaces/pthread_mutex_timedlock/2-1.c | 2 +- .../conformance/interfaces/pthread_mutex_timedlock/4-1.c | 2 +- .../conformance/interfaces/pthread_mutex_timedlock/5-1.c | 2 +- .../conformance/interfaces/pthread_mutex_timedlock/5-2.c | 2 +- .../conformance/interfaces/pthread_mutex_timedlock/5-3.c | 2 +- .../conformance/interfaces/pthread_mutex_trylock/1-1.c | 2 +- .../conformance/interfaces/pthread_mutex_trylock/4-3.c | 6 +++--- .../conformance/interfaces/pthread_mutex_unlock/2-1.c | 2 +- .../conformance/interfaces/pthread_mutex_unlock/5-1.c | 2 +- .../conformance/interfaces/pthread_mutexattr_settype/2-1.c | 2 +- .../conformance/interfaces/pthread_once/6-1.c | 6 +++--- .../conformance/interfaces/pthread_rwlock_init/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_init/2-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_rdlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_rdlock/4-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c | 4 ++-- .../conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedwrlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedwrlock/2-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedwrlock/3-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedwrlock/5-1.c | 4 ++-- .../conformance/interfaces/pthread_rwlock_timedwrlock/6-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_timedwrlock/6-2.c | 2 +- .../conformance/interfaces/pthread_rwlock_tryrdlock/1-1.c | 4 ++-- .../conformance/interfaces/pthread_rwlock_trywrlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_unlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_unlock/2-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_unlock/4-2.c | 2 +- .../conformance/interfaces/pthread_rwlock_wrlock/1-1.c | 2 +- .../conformance/interfaces/pthread_rwlock_wrlock/2-1.c | 2 +- .../conformance/interfaces/pthread_setschedparam/4-1.c | 2 +- .../conformance/interfaces/pthread_setschedparam/5-1.c | 4 ++-- .../conformance/interfaces/pthread_sigmask/18-1.c | 6 +++--- .../conformance/interfaces/pthread_spin_destroy/3-1.c | 2 +- .../conformance/interfaces/pthread_spin_init/4-1.c | 2 +- testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c | 2 +- testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c | 4 ++-- .../open_posix_testsuite/conformance/interfaces/raise/10000-1.c | 2 +- testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c | 2 +- testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c | 2 +- .../conformance/interfaces/sched_setparam/2-1.c | 2 +- .../conformance/interfaces/sched_setparam/2-2.c | 2 +- .../conformance/interfaces/sched_setparam/20-1.c | 2 +- .../conformance/interfaces/sched_setparam/21-1.c | 2 +- .../conformance/interfaces/sched_setparam/21-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sem_post/5-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sem_post/6-1.c | 2 +- .../conformance/interfaces/sem_timedwait/9-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sem_wait/13-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sem_wait/7-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-10.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-11.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-12.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-13.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-14.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-15.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-16.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-17.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-18.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-19.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-20.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-21.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-22.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-23.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-24.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-25.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-26.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-27.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-28.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-29.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-3.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-30.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-31.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-32.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-33.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-34.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-35.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-36.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-37.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-38.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-39.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-4.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-40.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-41.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-42.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-43.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-44.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-45.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-46.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-47.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-48.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-49.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-5.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-50.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-51.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-52.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-6.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-7.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-8.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigaction/12-9.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sighold/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigignore/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/signal/5-1.c | 4 ++-- .../open_posix_testsuite/conformance/interfaces/signal/6-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/signal/7-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigpending/1-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigpending/1-3.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigrelse/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigsuspend/6-1.c | 2 +- .../conformance/interfaces/sigtimedwait/1-1.c | 2 +- .../conformance/interfaces/sigtimedwait/2-1.c | 2 +- .../conformance/interfaces/sigtimedwait/4-1.c | 2 +- .../conformance/interfaces/sigtimedwait/5-1.c | 2 +- .../conformance/interfaces/sigtimedwait/6-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigwait/6-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigwait/6-2.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/1-1.c | 2 +- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/2-1.c | 4 +++- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/5-1.c | 4 +++- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/6-1.c | 4 +++- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/8-1.c | 4 +++- .../open_posix_testsuite/conformance/interfaces/sigwaitinfo/9-1.c | 2 +- .../conformance/interfaces/timer_create/3-1.c | 2 +- .../conformance/interfaces/timer_create/8-1.c | 4 ++-- .../conformance/interfaces/timer_create/9-1.c | 2 +- .../conformance/interfaces/timer_delete/1-1.c | 2 +- .../conformance/interfaces/timer_delete/speculative/5-2.c | 2 +- .../conformance/interfaces/timer_getoverrun/1-1.c | 2 +- .../open_posix_testsuite/functional/semaphores/sem_readerwriter.c | 2 +- .../functional/semaphores/sem_sleepingbarber.c | 2 +- testcases/open_posix_testsuite/include/proc.h | 1 - 219 files changed, 281 insertions(+), 272 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c index 7ecb0e375..d9b35ce0b 100644 --- a/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c +++ b/testcases/open_posix_testsuite/conformance/definitions/pthread_h/4-1-buildonly.c @@ -12,8 +12,9 @@ */ #include +#include "posixtest.h" -void *thread_function(void *arg) +void *thread_function(void *arg LTP_ATTRIBUTE_UNUSED) { return NULL; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c index 0842edd0f..9a034cc32 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/aio_cancel/3-1.c @@ -49,7 +49,8 @@ static volatile int countdown = BUF_NB; static volatile int canceled; -void sig_handler(int signum, siginfo_t *info, void *context) +void sig_handler(int signum LTP_ATTRIBUTE_UNUSED, siginfo_t *info, + void *context LTP_ATTRIBUTE_UNUSED) { struct aiocb *a = info->si_value.sival_ptr; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/13-1.c index 8f451b367..03ac62c43 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_receive/13-1.c @@ -33,7 +33,7 @@ #define NAMESIZE 50 #define BUFFER 40 -void stopreceive(int signo) +void stopreceive(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/12-1.c index 32f59a6cd..f63b50d89 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/12-1.c @@ -46,7 +46,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void justreturn_handler(int signo) +void justreturn_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-2.c index 7a8b3ba35..c06d94d51 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_send/5-2.c @@ -44,7 +44,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void justreturn_handler(int signo) +void justreturn_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-1.c index a7b3634d9..e8dc56197 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-1.c @@ -36,7 +36,7 @@ #define TIMEOUT 3 int blocking; -void exit_handler(int signo) +void exit_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("FAIL: the case is blocking, exit anyway\n"); blocking = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-2.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-2.c index 42a80a77f..05802b60e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/18-2.c @@ -37,7 +37,7 @@ #define TIMEOUT 3 int blocking; -void exit_handler(int signo) +void exit_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("FAIL: the case is blocking, exit anyway\n"); blocking = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-2.c index ab8dca4be..9398327fd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-2.c @@ -36,7 +36,7 @@ #define THRESHOLD (TIMEOUT - 1) int blocking; -void exit_handler(int signo) +void exit_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("FAIL: the case is blocking, exit anyway\n"); blocking = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c index cd4721a90..f062cd760 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/5-3.c @@ -37,7 +37,7 @@ #define NAMESIZE 50 #define BUFFER 40 -void stopreceive(int signo) +void stopreceive(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/8-1.c index 0d944df42..b1f9a3e96 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/8-1.c @@ -33,7 +33,7 @@ #define TIMEOUT 3 int blocking; -void exit_handler(int signo) +void exit_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("FAIL: the case is blocking, exit anyway\n"); blocking = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/12-1.c index 276aee65d..48e706fad 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/12-1.c @@ -57,12 +57,12 @@ pthread_barrier_t barrier; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void justreturn_handler(int signo) +void justreturn_handler(int signo LTP_ATTRIBUTE_UNUSED) { in_handler++; } -void *a_thread_func(void *arg) +void *a_thread_func(void *arg LTP_ATTRIBUTE_UNUSED) { int i, ret; struct sigaction act; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/15-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/15-1.c index 5d1ee2d2b..e86cd6074 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/15-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/15-1.c @@ -40,7 +40,7 @@ char gqname[NAMESIZE]; mqd_t gqueue; -void testfailed_handler(int signo) +void testfailed_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Timeout never happened\n"); printf("Test FAILED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/16-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/16-1.c index b6e05b30c..bfd58b550 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/16-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/16-1.c @@ -51,7 +51,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void stopsleep_handler(int signo) +void stopsleep_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/20-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/20-1.c index 7c77f3435..54e65f099 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/20-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/20-1.c @@ -40,7 +40,7 @@ char gqname[NAMESIZE]; mqd_t gqueue; -void testfailed_handler(int signo) +void testfailed_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Timeout never happened\n"); printf("Test FAILED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-1.c index e1a854112..b3ab27a49 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-1.c @@ -46,7 +46,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void stopsleep_handler(int signo) +void stopsleep_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-2.c index 0d8941395..d32aa78ef 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-2.c @@ -44,7 +44,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void justreturn_handler(int signo) +void justreturn_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-3.c index 47c739894..b910c8b1b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/mq_timedsend/5-3.c @@ -48,7 +48,7 @@ mqd_t gqueue; * This handler is just used to catch the signal and stop sleep (so the * parent knows the child is still busy sending signals). */ -void stopsleep_handler(int signo) +void stopsleep_handler(int signo LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-1.c index f67c31dc3..7f8b9ca6b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-1.c @@ -34,7 +34,7 @@ #define TNAME "munmap/1-1.c" -void sigsegv_handler(int signum) +void sigsegv_handler(int signum LTP_ATTRIBUTE_UNUSED) { printf("Got SIGSEGV\n"); printf("Test PASSED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-2.c index 882852680..59e63300e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/munmap/1-2.c @@ -34,7 +34,7 @@ #define TNAME "munmap/1-2.c" -void sigsegv_handler(int signum) +void sigsegv_handler(int signum LTP_ATTRIBUTE_UNUSED) { printf("Got SIGSEGV\n"); printf("Test PASSED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c index 118945202..9f227f966 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/1-3.c @@ -16,7 +16,7 @@ #include #include "posixtest.h" -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c index 651e66f66..7f4e4a86e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/3-1.c @@ -22,7 +22,7 @@ #define CHILDSUCCESS 1 #define CHILDFAIL 0 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Received signal - exit success\n"); exit(CHILDSUCCESS); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/5-2.c index 52ca89a40..ac3c3c7f1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/5-2.c @@ -19,7 +19,7 @@ #define CHILDSUCCESS 1 #define CHILDFAILURE 0 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c index f2686832e..17a49081f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-1.c @@ -20,7 +20,7 @@ #define CHILDSUCCESS 1 #define CHILDFAILURE 0 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c index 34ff02c17..8e761be47 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/nanosleep/7-2.c @@ -22,7 +22,7 @@ #define OKDELTA 1 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/1-2.c index 686397eb8..bd86920a6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/1-2.c @@ -107,7 +107,7 @@ void child(void) } /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, status; pid_t child, ctl; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/2-2.c index cd53ed826..8aca4a4fa 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/2-2.c @@ -135,7 +135,7 @@ void c6(void) } /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, status; pid_t child, ctl; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-2.c index e01c96841..d630ee6ab 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-2.c @@ -96,7 +96,7 @@ void child(void) } /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, status; pid_t child, ctl; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-3.c index 1ac3a043a..5757c572b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/3-3.c @@ -134,7 +134,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -145,7 +145,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -171,7 +171,7 @@ void child(void) } /* Test function -- calls pthread_setschedparam() and checks that EINTR is never returned. */ -void *test(void *arg) +void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/4-1.c index d4861ebd0..23ff6b4e2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/4-1.c @@ -155,7 +155,7 @@ void chi3(void) } /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, status; pid_t child, ctl; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/3-1.c index 976d7f5ec..d35779510 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_init/3-1.c @@ -23,7 +23,7 @@ #define NUM_THREADS 5 -void *a_thread_func(void *attr) +void *a_thread_func(void *attr LTP_ATTRIBUTE_UNUSED) { pthread_exit(NULL); return NULL; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-2.c index ce13789be..db31de4eb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-2.c @@ -36,7 +36,7 @@ const long int policy = SCHED_FIFO; const long int old_policy = SCHED_OTHER; -void *thread_func(void *arg) +void *thread_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; int new_policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-3.c index 501a06f75..4d8d496dc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-3.c @@ -32,7 +32,7 @@ int policy_correct = -1; int priority_correct = -1; -void *thread(void *tmp) +void *thread(void *tmp LTP_ATTRIBUTE_UNUSED) { struct sched_param param; int policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-4.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-4.c index a3889dfeb..b716c4323 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setinheritsched/2-4.c @@ -32,7 +32,7 @@ int policy_correct = -1; int priority_correct = -1; -void *thread(void *tmp) +void *thread(void *tmp LTP_ATTRIBUTE_UNUSED) { struct sched_param param; int policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-3.c index 6e0d4f517..16eb3c7a8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-3.c @@ -34,7 +34,7 @@ int policy_correct = -1; int priority_correct = -1; /* Thread function which checks the scheduler settings for itself */ -void *thread(void *tmp) +void *thread(void *tmp LTP_ATTRIBUTE_UNUSED) { struct sched_param param; int policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-4.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-4.c index c8301a993..72b0246a0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedparam/1-4.c @@ -34,7 +34,7 @@ int policy_correct = -1; int priority_correct = -1; /* Thread function which checks the scheduler settings for itself */ -void *thread(void *tmp) +void *thread(void *tmp LTP_ATTRIBUTE_UNUSED) { struct sched_param param; int policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/2-1.c index 3c4cec772..947238116 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/2-1.c @@ -49,7 +49,7 @@ static int thread_started; exit(PTS_UNRESOLVED); \ } -static void *thread_func(void *data) +static void *thread_func(void *data LTP_ATTRIBUTE_UNUSED) { struct sched_param sp; int policy; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/4-1.c index 2119a7450..6524e0b5a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_init/4-1.c @@ -35,7 +35,7 @@ static int thread_state; #define EXITING_THREAD 3 /* child thread */ -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/1-1.c index b84e526d3..9f874c3f7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/1-1.c @@ -32,7 +32,7 @@ static int thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-1.c index 7fab9b858..8a6e7bb04 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-1.c @@ -45,7 +45,7 @@ void sig_handler() printf("thread: interrupted by SIGUSR1\n"); } -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; struct sigaction act; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-2.c index c38c271b8..e04d91202 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_barrier_wait/3-2.c @@ -51,7 +51,7 @@ void sig_handler() } } -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; struct sigaction act; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-2.c index e7c24c393..1937aaea4 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-2.c @@ -30,13 +30,13 @@ int cleanup_flag = 0; int sem = 0; /* manual semaphore */ -void destructor(void *tmp) +void destructor(void *tmp LTP_ATTRIBUTE_UNUSED) { cleanup_flag = 1; } /* Thread's function. */ -void *a_thread_func(void *tmp) +void *a_thread_func(void *tmp LTP_ATTRIBUTE_UNUSED) { pthread_key_t key; int value = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-3.c index 42af238ab..def886bba 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/2-3.c @@ -37,7 +37,7 @@ struct timespec destructor_time, cleanup_time; /* Destructor for the Thread Specific Data */ -void destructor(void *tmp) +void destructor(void *tmp LTP_ATTRIBUTE_UNUSED) { clock_gettime(CLOCK_REALTIME, &destructor_time); destructor_flag = 1; @@ -53,7 +53,7 @@ void cleanup_function() } /* Thread's function. */ -void *a_thread_func(void *tmp) +void *a_thread_func(void *tmp LTP_ATTRIBUTE_UNUSED) { pthread_key_t key; int value = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/1-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/1-3.c index 6cd7165f4..1dec926ac 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/1-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cleanup_pop/1-3.c @@ -31,21 +31,21 @@ int cleanup_flag[3]; /* Array to hold the cleanup flags for the 3 cleanup handl int i; /* 3 Cleanup handlers */ -void a_cleanup_func1(void *flag_val) +void a_cleanup_func1(void *flag_val LTP_ATTRIBUTE_UNUSED) { cleanup_flag[i] = 1; i++; return; } -void a_cleanup_func2(void *flag_val) +void a_cleanup_func2(void *flag_val LTP_ATTRIBUTE_UNUSED) { cleanup_flag[i] = 2; i++; return; } -void a_cleanup_func3(void *flag_val) +void a_cleanup_func3(void *flag_val LTP_ATTRIBUTE_UNUSED) { cleanup_flag[i] = 3; i++; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-1.c index f463bc247..e61041ae8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/1-1.c @@ -27,7 +27,7 @@ struct testdata { static int start_num; static int waken_num; -static void *thr_func(void *arg) +static void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-1.c index 5565e0cf5..22e4aae94 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-1.c @@ -28,7 +28,7 @@ struct testdata { static int start_num; static int waken_num; -static void *thr_func(void *arg) +static void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-2.c index 8b870bcbd..71f3ef40a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-2.c @@ -31,7 +31,7 @@ struct testdata { static int start_num; static int waken_num; -static void *thr_func(void *arg) +static void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-3.c index 926077f0d..c371acb53 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/2-3.c @@ -157,7 +157,7 @@ struct { int nb; } children; -static void *child(void *arg) +static void *child(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; int timed; @@ -228,7 +228,7 @@ static void *child(void *arg) return NULL; } -static void *timer(void *arg) +static void *timer(void *arg LTP_ATTRIBUTE_UNUSED) { unsigned int to = TIMEOUT; do { diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-1.c index 8ddd5cd56..a0ad4f03b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-1.c @@ -27,7 +27,7 @@ struct testdata { static int start_num; static int waken_num; -static void *thr_func(void *arg) +static void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-2.c index b3fab5a69..a26088eac 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/4-2.c @@ -102,7 +102,7 @@ static void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -static void sighdl1(int sig) +static void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) @@ -111,7 +111,7 @@ static void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -static void sighdl2(int sig) +static void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) @@ -121,7 +121,7 @@ static void sighdl2(int sig) /* The following function will wait on the cond * it does check that no error code of EINTR is returned */ -static void *waiter(void *arg) +static void *waiter(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; @@ -152,7 +152,7 @@ static void *waiter(void *arg) } /* The next function will signal the condition */ -static void *worker(void *arg) +static void *worker(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/2-1.c index c755d4049..cdcd58ef0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/2-1.c @@ -208,7 +208,7 @@ typedef struct { testdata_t *td; /* Child function (either in a thread or in a process) */ -void *child(void *arg) +void *child(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; struct timespec ts; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-1.c index c13e913e3..ecbae0a66 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-1.c @@ -31,7 +31,7 @@ int start_num = 0; int waken_num = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { int i; printf("Error: failed to wakeup all threads\n"); @@ -42,7 +42,7 @@ void alarm_handler(int signo) exit(PTS_UNRESOLVED); } -void *thr_func(void *arg) +void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-2.c index aff0cb171..47a11945d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/1-2.c @@ -205,7 +205,7 @@ typedef struct { testdata_t *td; /* Child function (either in a thread or in a process) */ -void *child(void *arg) +void *child(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; struct timespec ts; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-1.c index 0a1a0cfdd..947bf8eb7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-1.c @@ -32,7 +32,7 @@ int start_num = 0; int waken_num = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { int i; printf("Error: failed to wakeup all threads\n"); @@ -43,7 +43,7 @@ void alarm_handler(int signo) exit(PTS_UNRESOLVED); } -void *thr_func(void *arg) +void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-2.c index 9991b72e8..d411530fd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/2-2.c @@ -31,7 +31,7 @@ struct testdata { int start_num = 0; int waken_num = 0; -void *thr_func(void *arg) +void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-1.c index 96d9b1e34..46e5b6158 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-1.c @@ -31,7 +31,7 @@ int start_num = 0; int waken_num = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { int i; printf("Error: failed to wakeup all threads\n"); @@ -42,7 +42,7 @@ void alarm_handler(int signo) exit(PTS_UNRESOLVED); } -void *thr_func(void *arg) +void *thr_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; pthread_t self = pthread_self(); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-2.c index 05ab3f6d3..f11c83794 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/4-2.c @@ -134,7 +134,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) { @@ -144,7 +144,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) { @@ -155,7 +155,7 @@ void sighdl2(int sig) /* The following function will wait on the cond * it does check that no error code of EINTR is returned */ -void *waiter(void *arg) +void *waiter(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; @@ -191,7 +191,7 @@ void *waiter(void *arg) } /* The next function will signal the condition */ -void *worker(void *arg) +void *worker(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/1-1.c index eb99fa0fa..4d9674535 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/1-1.c @@ -29,14 +29,14 @@ int t1_start = 0; int signaled = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Error: failed to wakeup thread\n"); pthread_cancel(thread1); exit(PTS_UNRESOLVED); } -void *t1_func(void *arg) +void *t1_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-1.c index 7e05c2b02..a6bf755fb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-1.c @@ -29,14 +29,14 @@ int t1_start = 0; int signaled = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Error: failed to wakeup thread\n"); pthread_cancel(thread1); exit(PTS_UNRESOLVED); } -void *t1_func(void *arg) +void *t1_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-3.c index 55d4f7448..cf5dbb2f6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/2-3.c @@ -90,7 +90,7 @@ struct { /**** First handler that will be poped * This one works only with recursive mutexes */ -void clnp1(void *arg) +void clnp1(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; if (data.type == PTHREAD_MUTEX_RECURSIVE) { @@ -111,7 +111,7 @@ void clnp1(void *arg) /**** Second handler * This one will trigger an action in main thread, while we are owning the mutex */ -void clnp2(void *arg) +void clnp2(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; do { @@ -134,7 +134,7 @@ void clnp2(void *arg) /**** Third handler * Will actually unlock the mutex, then try to unlock second time to check an error is returned */ -void clnp3(void *arg) +void clnp3(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; @@ -159,7 +159,7 @@ void clnp3(void *arg) * This function will lock the mutex, then install the cleanup handlers * and wait for the cond. At this point it will be canceled. */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/3-1.c index 57dfb40ef..8116dafc3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/3-1.c @@ -28,14 +28,14 @@ int t1_start = 0; int signaled = 0; /* Alarm handler */ -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Error: failed to wakeup thread\n"); pthread_cancel(thread1); exit(PTS_UNRESOLVED); } -void *t1_func(void *arg) +void *t1_func(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/4-1.c index d66e34082..5f102f762 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_wait/4-1.c @@ -136,7 +136,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) { @@ -146,7 +146,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) { @@ -157,7 +157,7 @@ void sighdl2(int sig) /* The following function will wait on the cond * it does check that no error code of EINTR is returned */ -void *waiter(void *arg) +void *waiter(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; @@ -198,7 +198,7 @@ void *waiter(void *arg) } /* The next function will signal the condition at periodic interval */ -void *worker(void *arg) +void *worker(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c index c1f0c6177..8a93fff52 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/2-1.c @@ -127,7 +127,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) { @@ -137,7 +137,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) { diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c index 12b50f42a..046d21aac 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/1-2.c @@ -91,7 +91,7 @@ /*********************************** Real Test *****************************************/ /********************************************************************************************/ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { pthread_exit(NULL + 1); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c index 40899d4ed..46a983b4f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/2-2.c @@ -102,7 +102,7 @@ CLEANUP(1) CLEANUP(2) CLEANUP(3) -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { pthread_cleanup_push(clnp3, NULL); pthread_cleanup_push(clnp2, NULL); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-1.c index 1f1a07b80..26df586be 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-1.c @@ -31,13 +31,13 @@ /* Flag to indicate that the destructor was called */ int cleanup_flag = 0; -void destructor(void *tmp) +void destructor(void *tmp LTP_ATTRIBUTE_UNUSED) { cleanup_flag = 1; } /* Thread's function. */ -void *a_thread_func(void *tmp) +void *a_thread_func(void *tmp LTP_ATTRIBUTE_UNUSED) { pthread_key_t key; int value = 1; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c index 2d9b91e75..5b64fc61b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/3-2.c @@ -112,7 +112,7 @@ void destructor(void *arg) } /* Thread routine */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c index ecf3be583..73246872b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/4-1.c @@ -103,7 +103,7 @@ void at2(void) } /* Thread routine */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-1.c index 3881f49a4..451f171b6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_exit/6-1.c @@ -105,7 +105,7 @@ void clnp(void) } /* Thread routine */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c index a827f5b77..97411ec51 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/4-1.c @@ -48,7 +48,7 @@ pthread_mutex_t mtx = PTHREAD_MUTEX_INITIALIZER; /* 1st thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/6-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/6-3.c index 86922c379..f97f0396e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/6-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/6-3.c @@ -96,7 +96,7 @@ static void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -static void sighdl1(int sig) +static void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) @@ -105,7 +105,7 @@ static void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -static void sighdl2(int sig) +static void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) @@ -113,13 +113,13 @@ static void sighdl2(int sig) #endif } -static void *threaded(void *arg) +static void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { sched_yield(); return NULL; } -static void *test(void *arg) +static void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; pthread_t child; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c index c6ec2f0df..8e07b1434 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_create/3-1.c @@ -32,7 +32,7 @@ pthread_key_t key; int dest_cnt; /* Destructor function */ -void dest_func(void *p) +void dest_func(void *p LTP_ATTRIBUTE_UNUSED) { dest_cnt++; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c index 77f52b15a..8aba51cac 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_key_delete/2-1.c @@ -30,7 +30,7 @@ pthread_key_t key; int dest_cnt; /* Destructor function */ -void dest_func(void *p) +void dest_func(void *p LTP_ATTRIBUTE_UNUSED) { dest_cnt++; /* Delete the key and check if an error has occured */ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/6-1.c index a4b2d0d89..e146b59cb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/6-1.c @@ -21,7 +21,7 @@ #include #include "posixtest.h" -void *thread_function(void *arg) +void *thread_function(void *arg LTP_ATTRIBUTE_UNUSED) { /* Does nothing */ pthread_exit(NULL); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c index 1be6722ac..353922721 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/8-1.c @@ -132,7 +132,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -143,7 +143,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -162,7 +162,7 @@ void initializer(void) } /* Test function -- calls pthread_kill() and checks that EINTR is never returned. */ -void *test(void *arg) +void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c index 0d5461a59..ff6177ed0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/1-2.c @@ -92,14 +92,14 @@ int canceled = 0; sem_t semA, semB; /***** Cancelation handlers *****/ -void cleanup_deadlk(void *arg) +void cleanup_deadlk(void *arg LTP_ATTRIBUTE_UNUSED) { canceled = 1; pthread_mutex_unlock(p_mtx); } /***** Threads functions *****/ -void *deadlk_issue(void *arg) +void *deadlk_issue(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, tmp; @@ -131,7 +131,7 @@ void *deadlk_issue(void *arg) return NULL; } -void *unlock_issue(void *arg) +void *unlock_issue(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-2.c index 483dc8de2..cefe21eb1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/3-2.c @@ -98,14 +98,14 @@ int canceled = 0; sem_t semA, semB; /***** Cancelation handlers *****/ -void cleanup_deadlk(void *arg) +void cleanup_deadlk(void *arg LTP_ATTRIBUTE_UNUSED) { canceled = 1; pthread_mutex_unlock(p_mtx); } /***** Threads functions *****/ -void *deadlk_issue(void *arg) +void *deadlk_issue(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, tmp; @@ -137,7 +137,7 @@ void *deadlk_issue(void *arg) return NULL; } -void *unlock_issue(void *arg) +void *unlock_issue(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/1-1.c index 314f1770a..a647f210d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/1-1.c @@ -69,7 +69,7 @@ int main(void) return PTS_PASS; } -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { int i, tmp; int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c index 3b0811f42..91fa0ee77 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/3-1.c @@ -122,7 +122,7 @@ void *sendsig(void *arg) } /* Next are the signal handlers. */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if ((sem_post(&semsig1))) { @@ -131,7 +131,7 @@ void sighdl1(int sig) #endif } -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if ((sem_post(&semsig2))) { @@ -143,7 +143,7 @@ void sighdl2(int sig) /* The following function loops on init/destroy some mutex (with different attributes) * it does check that no error code of EINTR is returned */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { pthread_mutexattr_t ma[4], *pma[5]; pthread_mutex_t m[5]; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/4-1.c index a96b8432c..d4275a1ca 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/4-1.c @@ -90,7 +90,7 @@ pthread_mutex_t mtx; sem_t sem; /** child thread function **/ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; /* Try to lock the mutex once. The call must fail here. */ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/5-1.c index 0dece222d..4c7eccaad 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/5-1.c @@ -91,7 +91,7 @@ sem_t semsig, semstart; int ctrl = 0; /********* signal handler **********/ -void sighdl(int sig) +void sighdl(int sig LTP_ATTRIBUTE_UNUSED) { if (sem_post(&semsig)) { UNRESOLVED(errno, "Sem_post in signal handler"); @@ -99,7 +99,7 @@ void sighdl(int sig) } /********** thread *********/ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret, i; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/1-1.c index 7527de13a..f1a1ac664 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/1-1.c @@ -106,7 +106,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/2-1.c index 1aca772a8..2c39b4bf6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/2-1.c @@ -109,7 +109,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout, ts; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/4-1.c index e0e362e4f..458df2685 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/4-1.c @@ -72,7 +72,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-1.c index 928c372dc..18d3a9908 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-1.c @@ -81,7 +81,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-2.c index a26a4e114..515f2f6a7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-2.c @@ -81,7 +81,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-3.c index 02b597387..43d699762 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/5-3.c @@ -95,7 +95,7 @@ int main(void) * f1() * * *************************/ -void *f1(void *parm) +void *f1(void *parm LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-1.c index 1803f2e16..70123e40d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/1-1.c @@ -84,7 +84,7 @@ int main(void) return PTS_PASS; } -void *func(void *parm) +void *func(void *parm LTP_ATTRIBUTE_UNUSED) { int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/4-3.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/4-3.c index 3b705d7f8..ba9072542 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/4-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_trylock/4-3.c @@ -155,7 +155,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig1)) { @@ -165,7 +165,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO if (sem_post(&semsig2)) { @@ -175,7 +175,7 @@ void sighdl2(int sig) } /* Test function -- This one calls pthread_mutex_trylock and check that no EINTR is returned. */ -void *test(void *arg) +void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; int i; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/2-1.c index 9c5d98d8a..6b46df334 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/2-1.c @@ -65,7 +65,7 @@ int main(void) return PTS_PASS; } -void *func(void *parm) +void *func(void *parm LTP_ATTRIBUTE_UNUSED) { int i, tmp; int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-1.c index 89e89d1a6..0519c7b73 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_unlock/5-1.c @@ -79,7 +79,7 @@ pthread_mutex_t m; /** child thread function **/ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; ret = pthread_mutex_unlock(&m); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/2-1.c index c73d7cd81..a9e9e6f0c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutexattr_settype/2-1.c @@ -31,7 +31,7 @@ #include #include "posixtest.h" -void alarm_handler(int signo) +void alarm_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Got SIGALRM after 1 second\n"); printf("Test PASSED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/6-1.c index 76f413440..802e830bb 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/6-1.c @@ -131,7 +131,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -142,7 +142,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -161,7 +161,7 @@ void initializer(void) } /* Test function -- calls pthread_equal() and checks that EINTR is never returned. */ -void *test(void *arg) +void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/1-1.c index a38b1d688..187719571 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/1-1.c @@ -25,7 +25,7 @@ static pthread_rwlock_t rwlock; static int thread_state; -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = 2; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/2-1.c index 823cadee9..436b27efa 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_init/2-1.c @@ -25,7 +25,7 @@ static pthread_rwlock_t rwlock; static int thread_state; -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = 2; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/1-1.c index 8f4835c48..0f201fa25 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/1-1.c @@ -42,7 +42,7 @@ static int thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/4-1.c index cebdd9278..ae45bf97a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_rdlock/4-1.c @@ -54,7 +54,7 @@ static void sig_handler() } } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c index b2795abb1..0b2251073 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/1-1.c @@ -47,7 +47,7 @@ static pthread_rwlock_t rwlock; static int thread_state; static struct timeval currsec1, currsec2; -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c index 55f7827c1..4f703a43a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/2-1.c @@ -45,7 +45,7 @@ static int thread_state; static time_t currsec1, currsec2; static int expired; -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { struct timespec abs_timeout; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c index 4861591c7..f4c9e18b7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/3-1.c @@ -50,7 +50,7 @@ static pthread_rwlock_t rwlock; static int thread_state; static struct timeval currsec1, currsec2; -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c index 3130d1fbf..64aeba16a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/5-1.c @@ -37,7 +37,7 @@ static int thread_state; static time_t currsec1; static int expired; -static void *fn_rd_1(void *arg) +static void *fn_rd_1(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; struct timespec abs_timeout; @@ -82,7 +82,7 @@ static void *fn_rd_1(void *arg) return NULL; } -static void *fn_rd_2(void *arg) +static void *fn_rd_2(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c index c6d398ab3..b13656293 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-1.c @@ -69,7 +69,7 @@ static void sig_handler() } } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c index aa24df4bc..01ca8663a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedrdlock/6-2.c @@ -78,7 +78,7 @@ static void sig_handler() handler_state = 3; } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/1-1.c index 885eb0ff2..03f91b58f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/1-1.c @@ -51,7 +51,7 @@ static int expired; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr(void *arg) +static void *fn_wr(void *arg LTP_ATTRIBUTE_UNUSED) { struct timespec timeout; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/2-1.c index 349098634..dfeb7d74c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/2-1.c @@ -46,7 +46,7 @@ static int expired; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn(void *arg) +static void *fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct timespec abs_timeout; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/3-1.c index 99611d61b..163439bc1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/3-1.c @@ -53,7 +53,7 @@ static int expired; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr(void *arg) +static void *fn_wr(void *arg LTP_ATTRIBUTE_UNUSED) { struct timespec timeout, ts; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/5-1.c index 97f8a8f11..f5bebca58 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/5-1.c @@ -44,7 +44,7 @@ static int expired; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr_1(void *arg) +static void *fn_wr_1(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; struct timespec abs_timeout; @@ -89,7 +89,7 @@ static void *fn_wr_1(void *arg) return NULL; } -static void *fn_wr_2(void *arg) +static void *fn_wr_2(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-1.c index 5a69731e0..05be6e61a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-1.c @@ -69,7 +69,7 @@ static void sig_handler() } } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-2.c index 7bff95d12..08c17478b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_timedwrlock/6-2.c @@ -78,7 +78,7 @@ static void sig_handler() handler_state = 3; } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; struct timespec abs_timeout; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/1-1.c index d07aaa513..00690d800 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_tryrdlock/1-1.c @@ -44,7 +44,7 @@ static int thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_rd_1(void *arg) +static void *fn_rd_1(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; @@ -67,7 +67,7 @@ static void *fn_rd_1(void *arg) return NULL; } -static void *fn_rd_2(void *arg) +static void *fn_rd_2(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/1-1.c index 7c3e3b73c..c5a14b2a7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_trywrlock/1-1.c @@ -42,7 +42,7 @@ static int get_ebusy; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr(void *arg) +static void *fn_wr(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; int rc; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/1-1.c index 3d94ff9de..deaea14d7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/1-1.c @@ -47,7 +47,7 @@ static int thread_state; #define PASSED_RLOCK2 4 #define EXITING_THREAD 5 -static void *fn_rd(void *arg) +static void *fn_rd(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/2-1.c index 24d2478f4..ea3c0c488 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/2-1.c @@ -40,7 +40,7 @@ static int thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr(void *arg) +static void *fn_wr(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-2.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-2.c index a0acd2120..5a5c8ecc6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_unlock/4-2.c @@ -41,7 +41,7 @@ static int rc, thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_unlk(void *arg) +static void *fn_unlk(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; printf("un_thread: unlock read lock\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/1-1.c index ac4891352..17f495937 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/1-1.c @@ -41,7 +41,7 @@ static int thread_state; #define ENTERED_THREAD 2 #define EXITING_THREAD 3 -static void *fn_wr(void *arg) +static void *fn_wr(void *arg LTP_ATTRIBUTE_UNUSED) { thread_state = ENTERED_THREAD; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/2-1.c index 9af61067f..68158c196 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_rwlock_wrlock/2-1.c @@ -54,7 +54,7 @@ static void sig_handler() } } -static void *th_fn(void *arg) +static void *th_fn(void *arg LTP_ATTRIBUTE_UNUSED) { struct sigaction act; int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/4-1.c index 6342f4497..2f9c6b4ec 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/4-1.c @@ -107,7 +107,7 @@ void check_param(pthread_t thread, int policy, int priority) } /* thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c index 78dd13605..5ebc0a643 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/5-1.c @@ -133,7 +133,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -144,7 +144,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c index 56fcc7f12..bfbdaf673 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/18-1.c @@ -132,7 +132,7 @@ void *sendsig(void *arg) /* Next are the signal handlers. */ /* This one is registered for signal SIGUSR1 */ -void sighdl1(int sig) +void sighdl1(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -143,7 +143,7 @@ void sighdl1(int sig) } /* This one is registered for signal SIGUSR2 */ -void sighdl2(int sig) +void sighdl2(int sig LTP_ATTRIBUTE_UNUSED) { #ifdef WITH_SYNCHRO @@ -162,7 +162,7 @@ void initializer(void) } /* Test function -- calls pthread_sigmask() and checks that EINTR is never returned. */ -void *test(void *arg) +void *test(void *arg LTP_ATTRIBUTE_UNUSED) { int ret = 0; sigset_t set; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/3-1.c index 2cbe47db3..d763567ae 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_destroy/3-1.c @@ -31,7 +31,7 @@ static pthread_spinlock_t spinlock; -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc = 0; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/4-1.c index a9e0c5653..1a0108bb0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/pthread_spin_init/4-1.c @@ -33,7 +33,7 @@ static pthread_spinlock_t spinlock; static int pshared; -static void *fn_chld(void *arg) +static void *fn_chld(void *arg LTP_ATTRIBUTE_UNUSED) { int rc; /* child: initialize a spin lock being locked by main thread */ diff --git a/testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c index ee8909ba4..1ebd8bba8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/raise/1-1.c @@ -22,7 +22,7 @@ #define SIGTOTEST SIGABRT -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal being tested!\n"); printf("Test PASSED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c index 1b112f388..61eb0cc1d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/raise/1-2.c @@ -32,13 +32,13 @@ #define SIGTOTEST SIGABRT -void parenthandler(int signo) +void parenthandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal from parent!\n"); exit(-1); } -void childhandler(int signo) +void childhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal from child!\n"); exit(0); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/raise/10000-1.c b/testcases/open_posix_testsuite/conformance/interfaces/raise/10000-1.c index 6d4f98331..6938784e8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/raise/10000-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/raise/10000-1.c @@ -51,7 +51,7 @@ static int invalid_tests[NUMINVALIDTESTS] = { INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192, 1073743192 }; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal being tested!\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c index b1dededc8..7cf805c18 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/raise/2-1.c @@ -34,7 +34,7 @@ #define LEAVINGHANDLER 3 int globalStatus = BEFOREHANDLER; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { globalStatus = INHANDLER; printf("Caught signal being tested!\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c index 9fa4f96d5..dcecede5b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/raise/4-1.c @@ -27,7 +27,7 @@ #define SIGTOTEST SIGABRT -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal being tested!\n"); printf("Test PASSED\n"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c index 86cf3a726..54a2deee6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-1.c @@ -67,7 +67,7 @@ void child_process(int id) } } -void sigterm_handler(int signum) +void sigterm_handler(int signum LTP_ATTRIBUTE_UNUSED) { close(STDOUT); close(the_pipe[0]); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c index 746f9a107..9c21c0280 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/2-2.c @@ -68,7 +68,7 @@ void child_process(int id) } } -void sigterm_handler(int signum) +void sigterm_handler(int signum LTP_ATTRIBUTE_UNUSED) { close(STDOUT); close(the_pipe[0]); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c index 947368459..821afeee5 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/20-1.c @@ -19,7 +19,7 @@ #include #include "posixtest.h" -void *runner(void *arg) +void *runner(void *arg LTP_ATTRIBUTE_UNUSED) { while (1) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c index 9ef83198e..7382b4945 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-1.c @@ -19,7 +19,7 @@ #include #include "posixtest.h" -void *runner(void *arg) +void *runner(void *arg LTP_ATTRIBUTE_UNUSED) { while (1) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c index c7e126419..d6e1c2ae7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sched_setparam/21-2.c @@ -19,7 +19,7 @@ #include #include "posixtest.h" -void *runner(void *arg) +void *runner(void *arg LTP_ATTRIBUTE_UNUSED) { while (1) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/5-1.c index cad4fe65e..f20dfdc70 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/5-1.c @@ -35,7 +35,7 @@ sem_t *gsemp; -void sighdl(int sig) +void sighdl(int sig LTP_ATTRIBUTE_UNUSED) { return; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/6-1.c index 7b7569bd4..8769ebd59 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_post/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_post/6-1.c @@ -34,7 +34,7 @@ sem_t *gsemp; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { if (sem_post(gsemp) == -1) { perror(ERROR_PREFIX "sem_post"); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/9-1.c index d59f06fe4..afe56f907 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/9-1.c @@ -29,7 +29,7 @@ #define CHILDPASS 1 #define CHILDFAIL 0 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/13-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/13-1.c index 2704697d6..42cec356d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/13-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/13-1.c @@ -51,7 +51,7 @@ static sem_t sem; -static void handler(int sig) +static void handler(int sig LTP_ATTRIBUTE_UNUSED) { int ret; ret = sem_post(&sem); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/7-1.c index 7c3a445eb..110d4f059 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/7-1.c @@ -27,7 +27,7 @@ #define CHILDPASS 1 #define CHILDFAIL 0 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("In handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-1.c index 68cac9925..0d62ad263 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-1.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-10.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-10.c index 15a2c8ccf..c135456ff 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-10.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-10.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-11.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-11.c index 3d099206c..505a5e36f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-11.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-11.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-12.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-12.c index 4f74ac9ca..9be6b14f3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-12.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-12.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-13.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-13.c index fce8623de..ac140bc21 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-13.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-13.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-14.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-14.c index d73ac2d15..1ddac1b06 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-14.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-14.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-15.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-15.c index ba5cacd9f..33f14bb88 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-15.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-15.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-16.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-16.c index 20394ed05..94231af29 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-16.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-16.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-17.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-17.c index c866abe54..a2bcc0fab 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-17.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-17.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-18.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-18.c index d6839dc4d..6172c8748 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-18.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-18.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-19.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-19.c index d6839dc4d..6172c8748 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-19.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-19.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-2.c index d6839dc4d..6172c8748 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-2.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-20.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-20.c index 41ce5f2ba..f6965e2c0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-20.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-20.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-21.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-21.c index 949c0b141..54b62300d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-21.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-21.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-22.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-22.c index 3d58f3a59..701e9da84 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-22.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-22.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-23.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-23.c index 6467b870b..c0f21d982 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-23.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-23.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-24.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-24.c index aaa1930e9..193c5f831 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-24.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-24.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-25.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-25.c index 4c56fcd7e..c4e8f5f0e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-25.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-25.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-26.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-26.c index 5782d0278..64ba65c3d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-26.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-26.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-27.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-27.c index 12a4b701f..1be2d6ee3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-27.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-27.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-28.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-28.c index 2e183de20..2b81c380b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-28.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-28.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-29.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-29.c index dda4e79bd..c0f2bdedc 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-29.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-29.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-3.c index bfc329568..a97e0ab0c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-3.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-30.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-30.c index 5542932a6..f0bbc13d7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-30.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-30.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-31.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-31.c index 9572198b8..f7533c242 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-31.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-31.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-32.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-32.c index 4eeaaa2be..376bbcc6b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-32.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-32.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-33.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-33.c index 66c3ca885..125136d70 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-33.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-33.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-34.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-34.c index 5e4ac197b..d1a4372ed 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-34.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-34.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-35.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-35.c index 8eb9ea022..13bb741e3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-35.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-35.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-36.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-36.c index 67cca07d2..9347a9c34 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-36.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-36.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-37.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-37.c index 0473be02c..b3a68f977 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-37.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-37.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-38.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-38.c index 55fd56743..19daef0de 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-38.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-38.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-39.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-39.c index 6b833db51..acb47eeda 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-39.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-39.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-4.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-4.c index 727244521..29b19381c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-4.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-4.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-40.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-40.c index f10eaf5f1..ac95a3eb0 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-40.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-40.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-41.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-41.c index c5b157ebf..ad944574e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-41.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-41.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-42.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-42.c index a5dda4142..42913bad3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-42.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-42.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-43.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-43.c index 51ca51d74..2102f68f6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-43.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-43.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-44.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-44.c index 2e183de20..2b81c380b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-44.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-44.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-45.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-45.c index 2e183de20..2b81c380b 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-45.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-45.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-46.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-46.c index 7764ffe4a..fed1534e1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-46.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-46.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-47.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-47.c index 1a1399ac5..c7fdf3991 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-47.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-47.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-48.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-48.c index 6d14d03f3..ca460a9ce 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-48.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-48.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-49.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-49.c index a1b5fbb10..689709b29 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-49.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-49.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-5.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-5.c index 03d995c39..d7d944271 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-5.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-5.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-50.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-50.c index a680a8383..b25289fe8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-50.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-50.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-51.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-51.c index 2cc102e12..bbfdadbd9 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-51.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-51.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-52.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-52.c index cedc31476..8dc293561 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-52.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-52.c @@ -22,7 +22,7 @@ stack_t current; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t oss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-6.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-6.c index 8dfcda246..b06f52e38 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-6.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-6.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-7.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-7.c index eec34c069..58abfdbe1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-7.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-7.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-8.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-8.c index 1c302f401..c04fdea63 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-8.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-8.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-9.c b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-9.c index 92c65b8e1..d2f2307e3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-9.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigaction/12-9.c @@ -24,7 +24,7 @@ stack_t alt_ss; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { stack_t ss; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sighold/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sighold/1-1.c index ff63cd74d..632596a84 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sighold/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sighold/1-1.c @@ -21,7 +21,7 @@ static int handler_called = 0; -static void handler(int signo) +static void handler(int signo LTP_ATTRIBUTE_UNUSED) { handler_called = 1; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigignore/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigignore/1-1.c index 4d65ea9e0..69c5886e3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigignore/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigignore/1-1.c @@ -20,7 +20,7 @@ signal is ever raised. static int handler_called = 0; -static void handler(int signo) +static void handler(int signo LTP_ATTRIBUTE_UNUSED) { handler_called = 1; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/signal/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/signal/5-1.c index a897b6f4c..6e0e649e8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/signal/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/signal/5-1.c @@ -22,12 +22,12 @@ #include #include "posixtest.h" -void SIGUSR1_handler(int signo) +void SIGUSR1_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("do nothing useful\n"); } -void SIGUSR2_handler(int signo) +void SIGUSR2_handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("do nothing useful\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/signal/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/signal/6-1.c index 74259f355..ad58161e6 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/signal/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/signal/6-1.c @@ -17,7 +17,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("handler does nothing useful.\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/signal/7-1.c b/testcases/open_posix_testsuite/conformance/interfaces/signal/7-1.c index e813d14d9..553cbd0ec 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/signal/7-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/signal/7-1.c @@ -17,7 +17,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("handler does nothing useful.\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-2.c index dcbec71d4..009e1fa92 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-2.c @@ -32,7 +32,7 @@ #include #include "posixtest.h" -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { sigset_t pendingset; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-3.c b/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-3.c index 72434140c..8dedfbc95 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-3.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigpending/1-3.c @@ -33,7 +33,7 @@ #include #include "posixtest.h" -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { sigset_t pendingset; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c index 71169cc88..d6256ef7d 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/5-1.c @@ -31,7 +31,7 @@ int counter = 0; -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { counter++; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/1-1.c index d33c68c3b..ad212ce4e 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigrelse/1-1.c @@ -25,7 +25,7 @@ static int handler_called; -static void handler(int signo) +static void handler(int signo LTP_ATTRIBUTE_UNUSED) { handler_called = 1; } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/6-1.c index 9023eeeee..c0240a497 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/6-1.c @@ -25,7 +25,7 @@ #include #include "posixtest.h" -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Now inside signal handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/1-1.c index 3883d9bfd..44ef3b054 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/1-1.c @@ -45,7 +45,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf ("Test FAILED: %d seconds have elapsed and sigtimedwait() has not yet returned.\n", diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/2-1.c index a9567e354..f23db0be3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/2-1.c @@ -46,7 +46,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf ("Test FAILED: %d seconds have elapsed and sigtimedwait() has not yet returned.\n", diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/4-1.c index 70ae60fb0..b52955490 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/4-1.c @@ -26,7 +26,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Inside handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/5-1.c index bc66b657c..569a1c328 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/5-1.c @@ -39,7 +39,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf ("Test FAILED: %d seconds have elapsed and sigtimedwait() has not yet returned.\n", diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/6-1.c index c66959013..d8cece87f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigtimedwait/6-1.c @@ -41,7 +41,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf ("Test FAILED: %d seconds have elapsed and sigtimedwait() has not yet returned.\n", diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-1.c index 3df1e1bec..3a8e618da 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-1.c @@ -85,7 +85,7 @@ int n_awaken = 0; sigset_t setusr; /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; int sig; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-2.c index f9227729a..f3209c2fd 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwait/6-2.c @@ -85,7 +85,7 @@ pthread_t last_awaken; sigset_t setusr; /* Thread function */ -void *threaded(void *arg) +void *threaded(void *arg LTP_ATTRIBUTE_UNUSED) { int ret; int sig; diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/1-1.c index 8620633d7..5fa4d1622 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/1-1.c @@ -26,7 +26,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Inside handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/2-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/2-1.c index d2c978188..11066184a 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/2-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/2-1.c @@ -28,7 +28,9 @@ #include #include "posixtest.h" -void myhandler(int signo, siginfo_t * info, void *context) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED, + siginfo_t *info LTP_ATTRIBUTE_UNUSED, + void *context LTP_ATTRIBUTE_UNUSED) { printf("Inside dummy handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/5-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/5-1.c index b426ce6ed..0c7d1f9c8 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/5-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/5-1.c @@ -25,7 +25,9 @@ #include #include "posixtest.h" -void myhandler(int signo, siginfo_t * info, void *context) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED, + siginfo_t *info LTP_ATTRIBUTE_UNUSED, + void *context LTP_ATTRIBUTE_UNUSED) { printf("Inside handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/6-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/6-1.c index 466386d99..82836cce3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/6-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/6-1.c @@ -25,7 +25,9 @@ #include #include "posixtest.h" -void myhandler(int signo, siginfo_t * info, void *context) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED, + siginfo_t *info LTP_ATTRIBUTE_UNUSED, + void *context LTP_ATTRIBUTE_UNUSED) { printf("Inside handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/8-1.c index 57bde159a..d603f59f7 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/8-1.c @@ -31,7 +31,9 @@ #include #include "posixtest.h" -void myhandler(int signo, siginfo_t * info, void *context) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED, + siginfo_t *info LTP_ATTRIBUTE_UNUSED, + void *context LTP_ATTRIBUTE_UNUSED) { printf("Just a dummy handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/9-1.c index f071ef82f..2be9ab3f1 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigwaitinfo/9-1.c @@ -25,7 +25,7 @@ #include #include "posixtest.h" -void myhandler(int signo) +void myhandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Inside handler\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/3-1.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/3-1.c index 851ad1e99..fb25ef20c 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/3-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/3-1.c @@ -24,7 +24,7 @@ #define SIGTOTEST SIGALRM #define SLEEPTIME 3 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/8-1.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/8-1.c index 0ee679c68..49ffb1cd2 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/8-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/8-1.c @@ -43,12 +43,12 @@ #define CHILDSUCCESS 1 #define CHILDFAILURE 0 -void parenthandler(int signo) +void parenthandler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Expected - Caught signal\n"); } -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Not expected - Caught signal\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/9-1.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/9-1.c index df606850e..fdf33b8a3 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_create/9-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_create/9-1.c @@ -29,7 +29,7 @@ #define SLEEPDELTA 3 #define ACCEPTABLEDELTA 1 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Caught signal\n"); } diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/1-1.c index d6611a32d..e0dff6d41 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/1-1.c @@ -31,7 +31,7 @@ #define SIGTOTEST SIGALRM #define TIMERSEC 3 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Should not have caught signal\n"); exit(PTS_FAIL); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/5-2.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/5-2.c index 3f857f499..1e9c82562 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/5-2.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_delete/speculative/5-2.c @@ -26,7 +26,7 @@ #define SIGTOTEST SIGALRM #define TIMERSEC 3 -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { printf("Should not have caught signal\n"); exit(PTS_FAIL); diff --git a/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/1-1.c b/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/1-1.c index 624d48b3c..e540a363f 100644 --- a/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/1-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/timer_getoverrun/1-1.c @@ -27,7 +27,7 @@ int madeit = 0; -void handler(int signo) +void handler(int signo LTP_ATTRIBUTE_UNUSED) { madeit++; if (madeit > 1) { diff --git a/testcases/open_posix_testsuite/functional/semaphores/sem_readerwriter.c b/testcases/open_posix_testsuite/functional/semaphores/sem_readerwriter.c index 0bb6b3625..d76cd9973 100644 --- a/testcases/open_posix_testsuite/functional/semaphores/sem_readerwriter.c +++ b/testcases/open_posix_testsuite/functional/semaphores/sem_readerwriter.c @@ -32,7 +32,7 @@ sem_t r_lock, w_lock; int reader_count = 0; int data = 0; -int read_fun(int ID) +int read_fun(int ID LTP_ATTRIBUTE_UNUSED) { printf("read the board, data=%d \n", data); return 0; diff --git a/testcases/open_posix_testsuite/functional/semaphores/sem_sleepingbarber.c b/testcases/open_posix_testsuite/functional/semaphores/sem_sleepingbarber.c index 7301c51f5..915ccb8ec 100644 --- a/testcases/open_posix_testsuite/functional/semaphores/sem_sleepingbarber.c +++ b/testcases/open_posix_testsuite/functional/semaphores/sem_sleepingbarber.c @@ -50,7 +50,7 @@ void mdelay(unsigned msecs) nanosleep(&req, NULL); } -void *barbers(void *unused) +void *barbers(void *unused LTP_ATTRIBUTE_UNUSED) { int i; for (i = 0; i < LOOP_NUM; i++) { diff --git a/testcases/open_posix_testsuite/include/proc.h b/testcases/open_posix_testsuite/include/proc.h index 4ff42ff24..ac40729b4 100644 --- a/testcases/open_posix_testsuite/include/proc.h +++ b/testcases/open_posix_testsuite/include/proc.h @@ -70,4 +70,3 @@ int tst_process_state_wait3(pid_t pid LTP_ATTRIBUTE_UNUSED, return 0; } #endif - -- cgit v1.2.3