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
This commit is contained in:
parent
e8fb29d7a8
commit
d0a84c2ce9
@ -305,9 +305,13 @@ rsock_socket0(int domain, int type, int proto)
|
|||||||
#endif
|
#endif
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
#ifdef SOCK_CLOEXEC
|
||||||
fix_cloexec:
|
fix_cloexec:
|
||||||
|
#endif
|
||||||
rb_maygvl_fd_fix_cloexec(ret);
|
rb_maygvl_fd_fix_cloexec(ret);
|
||||||
|
#ifdef SOCK_CLOEXEC
|
||||||
update_max_fd:
|
update_max_fd:
|
||||||
|
#endif
|
||||||
rb_update_max_fd(ret);
|
rb_update_max_fd(ret);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user