summaryrefslogtreecommitdiff
path: root/ext/io/wait
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-10 03:58:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-06-10 03:58:09 +0000
commitad494f67ddebcb21b2a0f5a1b8f1a3d17ef9f39a (patch)
treedf25a4d79738c190cdc4a54a216bfb254d3b9e9a /ext/io/wait
parenta31f177eaa0bdf610d2af3967111adfba334ff1d (diff)
* ext/io/wait/wait.c (FIONREAD_POSSIBLE_P): suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/wait')
-rw-r--r--ext/io/wait/wait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c
index 24d4ec091f0..5986f61b39e 100644
--- a/ext/io/wait/wait.c
+++ b/ext/io/wait/wait.c
@@ -30,7 +30,7 @@
#ifdef HAVE_RB_W32_IS_SOCKET
#define FIONREAD_POSSIBLE_P(fd) rb_w32_is_socket(fd)
#else
-#define FIONREAD_POSSIBLE_P(fd) ((fd),Qtrue)
+#define FIONREAD_POSSIBLE_P(fd) ((void)(fd),Qtrue)
#endif
static VALUE io_ready_p _((VALUE io));