summaryrefslogtreecommitdiff
path: root/pthread
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2007-12-23 14:39:42 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-04-07 23:11:45 +0200
commitb9ef8522bdb2b64bb5c5c73afe3dd17ba74e9d72 (patch)
treef08bb5e705d77a4a5a80308b18f306ec4a3f0dc6 /pthread
parent7d83f98545fac33bcdb6e42914da1d9f2548d522 (diff)
2007-12-23 Neal H. Walfield <neal@gnu.org>
* Makefile.am (AM_CPPFLAGS): Add "-std=gnu99 -Wall -g -O3". * sysdeps/l4/pt-block.c (__pthread_block): Remove unused variable err. * pthread/pt-join.c (pthread_join): Cast argument to pthread_cleanup_push to avoid warning.
Diffstat (limited to 'pthread')
-rw-r--r--pthread/pt-join.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pthread/pt-join.c b/pthread/pt-join.c
index 698b6c9f..06e9f1f7 100644
--- a/pthread/pt-join.c
+++ b/pthread/pt-join.c
@@ -37,7 +37,8 @@ pthread_join (pthread_t thread, void **status)
return ESRCH;
__pthread_mutex_lock (&pthread->state_lock);
- pthread_cleanup_push (__pthread_mutex_unlock, &pthread->state_lock);
+ pthread_cleanup_push ((void (*)(void *)) __pthread_mutex_unlock,
+ &pthread->state_lock);
while (pthread->state == PTHREAD_JOINABLE)
pthread_cond_wait (&pthread->state_cond, &pthread->state_lock);