From c32869dfeb9ce2958759639755419dd80afb8101 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 27 Jun 2011 02:45:30 +0000 Subject: Addtitional fix for previous commit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 1ed021b826..3870d1812d 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1018,7 +1018,7 @@ rb_thread_wakeup_timer_thread(void) } } -static int +static ssize_t consume_communication_pipe(void) { const size_t buff_size = 1024; @@ -1058,7 +1058,6 @@ thread_timer(void *p) { rb_global_vm_lock_t *gvl = (rb_global_vm_lock_t *)p; int result; - int len; struct timeval timeout; if (TT_DEBUG) fprintf(stderr, "start timer thread\n"); @@ -1091,7 +1090,7 @@ thread_timer(void *p) /* maybe timeout */ } else if (result > 0) { - len = consume_communication_pipe(); + (void)consume_communication_pipe(); } else { /* result < 0 */ if (errno == EINTR) { -- cgit v1.2.3