diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-18 04:42:58 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-18 04:42:58 +0000 |
commit | 0177f14848284e1ec7aa83268b332233098b8cce (patch) | |
tree | 7d17f1bf71a460aeac884d9ef1bc92f0b2f1e214 /thread.c | |
parent | 705e76db67c53a73007693cc85272f960e2a18b1 (diff) | |
download | ruby-0177f14848284e1ec7aa83268b332233098b8cce.tar.gz |
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.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3404,7 +3404,9 @@ rb_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *excep 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 |