1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2017-02-15 05:53:01 +00:00
parent 87577a1f80
commit cd89148199

View file

@ -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