From d0a84c2ce9d984c99df59f0039c5bcee404df7b2 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 31 Jan 2014 07:08:52 +0000 Subject: 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 --- ext/socket/init.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/socket') diff --git a/ext/socket/init.c b/ext/socket/init.c index cc44f94571..313e11bdf9 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; -- cgit v1.2.3