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

ruby-changes:39410

From: nobu <ko1@a...>
Date: Wed, 5 Aug 2015 15:32:22 +0900 (JST)
Subject: [ruby-changes:39410] nobu:r51491 (trunk): socket.c: suppress warnings

nobu	2015-08-05 15:32:04 +0900 (Wed, 05 Aug 2015)

  New Revision: 51491

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

  Log:
    socket.c: suppress warnings
    
    * ext/socket/socket.c (socket_s_ip_address_list): suppress
      warnings to assign pointers to literal strings.

  Modified files:
    trunk/ext/socket/socket.c
Index: ext/socket/socket.c
===================================================================
--- ext/socket/socket.c	(revision 51490)
+++ ext/socket/socket.c	(revision 51491)
@@ -1789,7 +1789,7 @@ socket_s_ip_address_list(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/socket/socket.c#L1789
     int ret;
     struct lifnum ln;
     struct lifconf lc;
-    char *reason = NULL;
+    const char *reason = NULL;
     int save_errno;
     int i;
     VALUE list = Qnil;

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

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