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

ruby-changes:39813

From: nobu <ko1@a...>
Date: Fri, 18 Sep 2015 13:43:32 +0900 (JST)
Subject: [ruby-changes:39813] nobu:r51894 (trunk): thread.c: suppress warnings only if GCC6+

nobu	2015-09-18 13:42:58 +0900 (Fri, 18 Sep 2015)

  New Revision: 51894

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

  Log:
    thread.c: suppress warnings only if GCC6+
    
    * thread.c (rb_fd_no_init): suppress warnings by applying ASSUME
      only if GCC 6 or lator, to get rid of freeze with GCC 4.7.2-5.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 51893)
+++ thread.c	(revision 51894)
@@ -3404,7 +3404,9 @@ rb_fd_select(int n, rb_fdset_t *readfds, https://github.com/ruby/ruby/blob/trunk/thread.c#L3404
     return select(n, r, w, e, timeout);
 }
 
+#if defined __GNUC__ && __GNUC__ >= 6
 #define rb_fd_no_init(fds) ASSUME(!(fds)->maxfd)
+#endif
 
 #undef FD_ZERO
 #undef FD_SET

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

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