diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 06:32:04 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-08-05 06:32:04 +0000 |
commit | 7918dc352f5e93bc660e5083be638f38e07f7205 (patch) | |
tree | 70545ad60e7a3935ff20ec638090ceed8bd30e97 | |
parent | db45ec9845c1dee557e035f4c79290b1d6c3fb9e (diff) | |
download | ruby-7918dc352f5e93bc660e5083be638f38e07f7205.tar.gz |
socket.c: suppress warnings
* ext/socket/socket.c (socket_s_ip_address_list): suppress
warnings to assign pointers to literal strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ext/socket/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index 1ebeef7106..2e7bf96c87 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -1789,7 +1789,7 @@ socket_s_ip_address_list(VALUE self) int ret; struct lifnum ln; struct lifconf lc; - char *reason = NULL; + const char *reason = NULL; int save_errno; int i; VALUE list = Qnil; |