[前][次][番号順一覧][スレッド一覧]

ruby-changes:45560

From: nobu <ko1@a...>
Date: Wed, 15 Feb 2017 14:53:06 +0900 (JST)
Subject: [ruby-changes:45560] nobu:r57633 (trunk): thread.c: fix for VC

nobu	2017-02-15 14:53:01 +0900 (Wed, 15 Feb 2017)

  New Revision: 57633

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=57633

  Log:
    thread.c: fix for VC
    
    * thread.c (rb_fd_no_init): make void same as rb_fd_init_copy.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 57632)
+++ thread.c	(revision 57633)
@@ -3573,7 +3573,7 @@ rb_fd_select(int n, rb_fdset_t *readfds, https://github.com/ruby/ruby/blob/trunk/thread.c#L3573
     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) https://github.com/ruby/ruby/blob/trunk/thread.c#L3638
 #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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]