From 11b9c61ae7ed6ef0cca7c1add8471b4c1f2fada1 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Wed, 20 Jun 2018 06:37:10 +0000 Subject: [PATCH] Update: Removed unused variable. I'm not sure if we should check for the result of pthread_join(). But how it was doesn't do that anyway. --- thread/thread.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/thread/thread.c b/thread/thread.c index 2840759..11d28f0 100644 --- a/thread/thread.c +++ b/thread/thread.c @@ -750,9 +750,8 @@ void thread_library_unlock(void) void thread_join(thread_type *thread) { void *ret; - int i; - i = pthread_join(thread->sys_thread, &ret); + pthread_join(thread->sys_thread, &ret); _mutex_lock(&_threadtree_mutex); avl_delete(_threadtree, thread, _free_thread); _mutex_unlock(&_threadtree_mutex);