summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-15 05:53:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-02-15 05:53:01 +0000
commitcd891481993ce279fbbacb848d19540e3bca67d3 (patch)
tree74de1853355c97d998e8e32eee2ef43c71d2a404 /thread.c
parent87577a1f8044170c2f21ceae6ec55de30559e52b (diff)
thread.c: fix for VC
* thread.c (rb_fd_no_init): make void same as rb_fd_init_copy. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 39fdf9d23d..f7b76bb82f 100644
--- a/thread.c
+++ b/thread.c
@@ -3573,7 +3573,7 @@ rb_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *excep
return select(n, r, w, e, timeout);
}
-#define rb_fd_no_init(fds) (((fds)->fdset = 0), ((fds)->maxfd = 0))
+#define rb_fd_no_init(fds) ((void)((fds)->fdset = 0), (void)((fds)->maxfd = 0))
#undef FD_ZERO
#undef FD_SET
@@ -3638,7 +3638,7 @@ rb_fd_set(int fd, rb_fdset_t *set)
#define FD_CLR(i, f) rb_fd_clr((i), (f))
#define FD_ISSET(i, f) rb_fd_isset((i), (f))
-#define rb_fd_no_init(fds) ((fds)->fdset = 0)
+#define rb_fd_no_init(fds) (void)((fds)->fdset = 0)
#endif