summaryrefslogtreecommitdiff
path: root/ext/socket
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-29 02:04:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-29 02:04:16 +0000
commit0cee7f8e2f19196625501118d68b2acb58313acf (patch)
treede82d241ffa9de355c24239706658a13691a104c /ext/socket
parent14d06db4e4a493ce8240782a8976c53b18b475ca (diff)
socket.c: suppress warnings
* ext/socket/socket.c (rsock_socketpair0): suppress unused label warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r--ext/socket/socket.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index bac2425..31ac120 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -214,11 +214,15 @@ rsock_socketpair0(int domain, int type, int protocol, int sv[2])
return -1;
}
+#ifdef SOCK_CLOEXEC
fix_cloexec:
+#endif
rb_maygvl_fd_fix_cloexec(sv[0]);
rb_maygvl_fd_fix_cloexec(sv[1]);
+#ifdef SOCK_CLOEXEC
update_max_fd:
+#endif
rb_update_max_fd(sv[0]);
rb_update_max_fd(sv[1]);