diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 09:36:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-26 09:36:35 +0000 |
commit | 87e4ad0a236217fb27c3a0a22a1c3b4937f29771 (patch) | |
tree | bbde5fbb582f4881a8cb77d12fbf3e790e14edd5 /io.c | |
parent | c7451eb7255a534182caa0f2c27beda0b140f741 (diff) |
* io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -488,7 +488,10 @@ io_alloc(VALUE klass) static int wsplit_p(rb_io_t *fptr) { +#if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(O_NONBLOCK) int r; +#endif + if (!(fptr->mode & FMODE_WSPLIT_INITIALIZED)) { struct stat buf; if (fstat(fptr->fd, &buf) == 0 && |