summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-12-27 09:37:14 +0000
committerMike Frysinger <vapier@gentoo.org>2005-12-27 09:37:14 +0000
commit9acaf58149a23501ae138efce10f8944a20e214d (patch)
tree261742c79e7b55420b2e8d6dbbef073851aab4bc
parentb027080b40664e29d83456951ad3e3e519615c8d (diff)
kill off minor unused warnings
-rw-r--r--libpthread/linuxthreads.old/attr.c2
-rw-r--r--libpthread/linuxthreads.old/condvar.c10
-rw-r--r--libpthread/linuxthreads.old/manager.c2
-rw-r--r--libpthread/linuxthreads.old/mutex.c6
-rw-r--r--libpthread/linuxthreads.old/oldsemaphore.c2
-rw-r--r--libpthread/linuxthreads.old/rwlock.c2
-rw-r--r--libpthread/linuxthreads.old/semaphore.c6
-rw-r--r--libpthread/linuxthreads.old/signals.c2
8 files changed, 16 insertions, 16 deletions
diff --git a/libpthread/linuxthreads.old/attr.c b/libpthread/linuxthreads.old/attr.c
index 4432a04d1..a8dfb335e 100644
--- a/libpthread/linuxthreads.old/attr.c
+++ b/libpthread/linuxthreads.old/attr.c
@@ -68,7 +68,7 @@ strong_alias (__pthread_attr_init_2_1, pthread_attr_init)
#endif
#endif /* DO_PTHREAD_VERSIONING_WITH_UCLIBC */
-int pthread_attr_destroy(pthread_attr_t *attr)
+int pthread_attr_destroy(pthread_attr_t *attr attribute_unused)
{
return 0;
}
diff --git a/libpthread/linuxthreads.old/condvar.c b/libpthread/linuxthreads.old/condvar.c
index f9c46a331..c5a4f81da 100644
--- a/libpthread/linuxthreads.old/condvar.c
+++ b/libpthread/linuxthreads.old/condvar.c
@@ -26,7 +26,7 @@
#include "restart.h"
int pthread_cond_init(pthread_cond_t *cond,
- const pthread_condattr_t *cond_attr)
+ const pthread_condattr_t *cond_attr attribute_unused)
{
__pthread_init_lock(&cond->__c_lock);
cond->__c_waiting = NULL;
@@ -267,23 +267,23 @@ int pthread_cond_broadcast(pthread_cond_t *cond)
return 0;
}
-int pthread_condattr_init(pthread_condattr_t *attr)
+int pthread_condattr_init(pthread_condattr_t *attr attribute_unused)
{
return 0;
}
-int pthread_condattr_destroy(pthread_condattr_t *attr)
+int pthread_condattr_destroy(pthread_condattr_t *attr attribute_unused)
{
return 0;
}
-int pthread_condattr_getpshared (const pthread_condattr_t *attr, int *pshared)
+int pthread_condattr_getpshared (const pthread_condattr_t *attr attribute_unused, int *pshared)
{
*pshared = PTHREAD_PROCESS_PRIVATE;
return 0;
}
-int pthread_condattr_setpshared (pthread_condattr_t *attr, int pshared)
+int pthread_condattr_setpshared (pthread_condattr_t *attr attribute_unused, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
return EINVAL;
diff --git a/libpthread/linuxthreads.old/manager.c b/libpthread/linuxthreads.old/manager.c
index 7ad5ab525..c68daa590 100644
--- a/libpthread/linuxthreads.old/manager.c
+++ b/libpthread/linuxthreads.old/manager.c
@@ -876,7 +876,7 @@ static void pthread_handle_exit(pthread_descr issuing_thread, int exitcode)
/* Handler for __pthread_sig_cancel in thread manager thread */
-void __pthread_manager_sighandler(int sig)
+void __pthread_manager_sighandler(int sig attribute_unused)
{
int kick_manager = terminated_children == 0 && main_thread_exiting;
terminated_children = 1;
diff --git a/libpthread/linuxthreads.old/mutex.c b/libpthread/linuxthreads.old/mutex.c
index d66882d4e..ca470cd75 100644
--- a/libpthread/linuxthreads.old/mutex.c
+++ b/libpthread/linuxthreads.old/mutex.c
@@ -212,7 +212,7 @@ int __pthread_mutexattr_init(pthread_mutexattr_t *attr)
}
strong_alias (__pthread_mutexattr_init, pthread_mutexattr_init)
-int __pthread_mutexattr_destroy(pthread_mutexattr_t *attr)
+int __pthread_mutexattr_destroy(pthread_mutexattr_t *attr attribute_unused)
{
return 0;
}
@@ -241,7 +241,7 @@ weak_alias (__pthread_mutexattr_gettype, pthread_mutexattr_gettype)
strong_alias (__pthread_mutexattr_gettype, __pthread_mutexattr_getkind_np)
weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np)
-int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr,
+int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr attribute_unused,
int *pshared)
{
*pshared = PTHREAD_PROCESS_PRIVATE;
@@ -249,7 +249,7 @@ int __pthread_mutexattr_getpshared (const pthread_mutexattr_t *attr,
}
weak_alias (__pthread_mutexattr_getpshared, pthread_mutexattr_getpshared)
-int __pthread_mutexattr_setpshared (pthread_mutexattr_t *attr, int pshared)
+int __pthread_mutexattr_setpshared (pthread_mutexattr_t *attr attribute_unused, int pshared)
{
if (pshared != PTHREAD_PROCESS_PRIVATE && pshared != PTHREAD_PROCESS_SHARED)
return EINVAL;
diff --git a/libpthread/linuxthreads.old/oldsemaphore.c b/libpthread/linuxthreads.old/oldsemaphore.c
index 3a3b3d186..6817e8e7c 100644
--- a/libpthread/linuxthreads.old/oldsemaphore.c
+++ b/libpthread/linuxthreads.old/oldsemaphore.c
@@ -72,7 +72,7 @@ int __old_sem_init(old_sem_t *sem, int pshared, unsigned int value)
waiting inside __old_sem_wait. Here we simply unconditionally
indicate that the thread is to be woken, by returning 1. */
-static int old_sem_extricate_func(void *obj, pthread_descr th)
+static int old_sem_extricate_func(void *obj attribute_unused, pthread_descr th attribute_unused)
{
return 1;
}
diff --git a/libpthread/linuxthreads.old/rwlock.c b/libpthread/linuxthreads.old/rwlock.c
index 977fd88af..e25ab3ea0 100644
--- a/libpthread/linuxthreads.old/rwlock.c
+++ b/libpthread/linuxthreads.old/rwlock.c
@@ -438,7 +438,7 @@ pthread_rwlockattr_init (pthread_rwlockattr_t *attr)
int
-pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr)
+pthread_rwlockattr_destroy (pthread_rwlockattr_t *attr attribute_unused)
{
return 0;
}
diff --git a/libpthread/linuxthreads.old/semaphore.c b/libpthread/linuxthreads.old/semaphore.c
index 5be1f5316..0a156e123 100644
--- a/libpthread/linuxthreads.old/semaphore.c
+++ b/libpthread/linuxthreads.old/semaphore.c
@@ -190,19 +190,19 @@ int __new_sem_destroy(sem_t * sem)
return 0;
}
-sem_t *sem_open(const char *name, int oflag, ...)
+sem_t *sem_open(const char *name attribute_unused, int oflag attribute_unused, ...)
{
__set_errno (ENOSYS);
return SEM_FAILED;
}
-int sem_close(sem_t *sem)
+int sem_close(sem_t *sem attribute_unused)
{
__set_errno (ENOSYS);
return -1;
}
-int sem_unlink(const char *name)
+int sem_unlink(const char *name attribute_unused)
{
__set_errno (ENOSYS);
return -1;
diff --git a/libpthread/linuxthreads.old/signals.c b/libpthread/linuxthreads.old/signals.c
index df15b884e..0ac858139 100644
--- a/libpthread/linuxthreads.old/signals.c
+++ b/libpthread/linuxthreads.old/signals.c
@@ -178,7 +178,7 @@ printf(__FUNCTION__": signahdler installed, __sigaction successful\n");
strong_alias(__sigaction, sigaction)
/* A signal handler that does nothing */
-static void pthread_null_sighandler(int sig) { }
+static void pthread_null_sighandler(int sig attribute_unused) { }
/* sigwait -- synchronously wait for a signal */
int sigwait(const sigset_t * set, int * sig)