[前][次][番号順一覧][スレッド一覧]

ruby-changes:32655

From: nobu <ko1@a...>
Date: Wed, 29 Jan 2014 11:04:20 +0900 (JST)
Subject: [ruby-changes:32655] nobu:r44734 (trunk): socket.c: suppress warnings

nobu	2014-01-29 11:04:16 +0900 (Wed, 29 Jan 2014)

  New Revision: 44734

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44734

  Log:
    socket.c: suppress warnings
    
    * ext/socket/socket.c (rsock_socketpair0): suppress unused label
      warnings.

  Modified files:
    trunk/ext/socket/socket.c
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 44733)
+++ ext/socket/socket.c	(revision 44734)
@@ -214,11 +214,15 @@ rsock_socketpair0(int domain, int type, https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L214
         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]);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]