* thread_pthread.c (consume_communication_pipe): change return

type to void. caller doesn't use it.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2011-06-27 13:05:22 +00:00
parent d647b5358e
commit f8cc779680
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Jun 27 22:04:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.c (consume_communication_pipe): change return
type to void. caller doesn't use it.
Mon Jun 27 21:29:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Mon Jun 27 21:29:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread_pthread.h (rb_global_vm_lock_struct): add volatile to * thread_pthread.h (rb_global_vm_lock_struct): add volatile to

View File

@ -1018,7 +1018,7 @@ rb_thread_wakeup_timer_thread(void)
} }
} }
static ssize_t static void
consume_communication_pipe(void) consume_communication_pipe(void)
{ {
const size_t buff_size = 1024; const size_t buff_size = 1024;
@ -1033,7 +1033,6 @@ consume_communication_pipe(void)
rb_bug_errno("consume_communication_pipe: read", errno); rb_bug_errno("consume_communication_pipe: read", errno);
} }
} }
return result;
} }
static void static void
@ -1090,7 +1089,7 @@ thread_timer(void *p)
/* maybe timeout */ /* maybe timeout */
} }
else if (result > 0) { else if (result > 0) {
(void)consume_communication_pipe(); consume_communication_pipe();
} }
else { /* result < 0 */ else { /* result < 0 */
if (errno == EINTR) { if (errno == EINTR) {