diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-15 05:53:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-15 05:53:01 +0000 |
commit | 9bcd76880e066dfa56bc604b69f59fc5aeff1ec2 (patch) | |
tree | 74de1853355c97d998e8e32eee2ef43c71d2a404 /thread.c | |
parent | 1bf5bedd5c722dc6c655a7c038f335c8df050320 (diff) | |
download | ruby-9bcd76880e066dfa56bc604b69f59fc5aeff1ec2.tar.gz |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |