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/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:
nobu 2014-01-31 07:08:52 +00:00
parent e8fb29d7a8
commit d0a84c2ce9

View file

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