summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-31 07:08:52 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-31 07:08:52 +0000
commitd0a84c2ce9d984c99df59f0039c5bcee404df7b2 (patch)
tree968ab139be5be26ea9a44f0a35af387412c9387f /ext
parente8fb29d7a8e39767f870ebe008377ff4cac6bee0 (diff)
socket.c: suppress warnings
* ext/socket/init.c (rsock_socket0): suppress unused label warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/socket/init.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/init.c b/ext/socket/init.c
index cc44f94..313e11b 100644
--- a/ext/socket/init.c
+++ b/ext/socket/init.c
@@ -305,9 +305,13 @@ rsock_socket0(int domain, int type, int proto)
#endif
if (ret == -1)
return -1;
+#ifdef SOCK_CLOEXEC
fix_cloexec:
+#endif
rb_maygvl_fd_fix_cloexec(ret);
+#ifdef SOCK_CLOEXEC
update_max_fd:
+#endif
rb_update_max_fd(ret);
return ret;