1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2014-01-29 02:04:16 +00:00
parent 14d06db4e4
commit 0cee7f8e2f

View file

@ -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]);