8000 thread.c: suppress warnings only if GCC6+ · documenting-ruby/ruby@f8a2398 · GitHub
[go: up one dir, main page]

Skip to content

Commit f8a2398

Browse files
committed
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
1 parent 02bb538 commit f8a2398

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

thread.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,7 +3404,9 @@ rb_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *excep
34043404
return select(n, r, w, e, timeout);
34053405
}
34063406

3407+
#if defined __GNUC__ && __GNUC__ >= 6
34073408
#define rb_fd_no_init(fds) ASSUME(!(fds)->maxfd)
3409+
#endif
34083410

34093411
#undef FD_ZERO
34103412
#undef FD_SET

0 commit comments

Comments
 (0)
0