From 7bca2f031ae387f979397f73640f0c5b07dc313d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 11 Jul 2012 03:17:35 +0000 Subject: get rid of warnings * io.c (sysopen_func, rb_sysopen_internal): cast through VALUE to get rid of warnings. fixup of r36355. * process.c (rb_waitpid_blocking, rb_waitpid): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 3bc452d94b..91ab2d8c93 100644 --- a/io.c +++ b/io.c @@ -5015,14 +5015,14 @@ sysopen_func(void *ptr) { const struct sysopen_struct *data = ptr; const char *fname = RSTRING_PTR(data->fname); - return (void *)rb_cloexec_open(fname, data->oflags, data->perm); + return (void *)(VALUE)rb_cloexec_open(fname, data->oflags, data->perm); } static inline int rb_sysopen_internal(struct sysopen_struct *data) { int fd; - fd = (int)rb_thread_call_without_gvl(sysopen_func, data, RUBY_UBF_IO, 0); + fd = (int)(VALUE)rb_thread_call_without_gvl(sysopen_func, data, RUBY_UBF_IO, 0); if (0 <= fd) rb_update_max_fd(fd); return fd; -- cgit v1.2.3