diff options
author | neal <neal> | 2007-12-23 14:39:42 +0000 |
---|---|---|
committer | neal <neal> | 2007-12-23 14:39:42 +0000 |
commit | d527e074b28d3c68fd507347a09e1a0edc8b54fc (patch) | |
tree | 0f4469031978477cc772d39efbe61f9192c5365b /libpthread/pthread | |
parent | 4a9192379d6acaf06d2c435bc7c79b132c1bfdfc (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 'libpthread/pthread')
-rw-r--r-- | libpthread/pthread/pt-join.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpthread/pthread/pt-join.c b/libpthread/pthread/pt-join.c index 698b6c9..06e9f1f 100644 --- a/libpthread/pthread/pt-join.c +++ b/libpthread/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); |