ruby-changes:32696
From: nobu <ko1@a...>
Date: Fri, 31 Jan 2014 16:08:57 +0900 (JST)
Subject: [ruby-changes:32696] nobu:r44775 (trunk): socket.c: suppress warnings
nobu 2014-01-31 16:08:52 +0900 (Fri, 31 Jan 2014) New Revision: 44775 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44775 Log: socket.c: suppress warnings * ext/socket/init.c (rsock_socket0): suppress unused label warnings. Modified files: trunk/ext/socket/init.c Index: ext/socket/init.c =================================================================== --- ext/socket/init.c (revision 44774) +++ ext/socket/init.c (revision 44775) @@ -305,9 +305,13 @@ rsock_socket0(int domain, int type, int https://github.com/ruby/ruby/blob/trunk/ext/socket/init.c#L305 #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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/