ruby-changes:63148
From: Yusuke <ko1@a...>
Date: Sun, 27 Sep 2020 02:41:23 +0900 (JST)
Subject: [ruby-changes:63148] 950614b088 (master): ext/socket/ipsocket.c: prevent "warning: unused variable 'resolv_timeout'"
https://git.ruby-lang.org/ruby.git/commit/?id=950614b088 From 950614b08845b93fe1f20350437917b0e44bc030 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Sun, 27 Sep 2020 02:38:08 +0900 Subject: ext/socket/ipsocket.c: prevent "warning: unused variable 'resolv_timeout'" diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index e2b7308..96782c7 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -50,13 +50,12 @@ init_inetsock_internal(VALUE v) https://github.com/ruby/ruby/blob/trunk/ext/socket/ipsocket.c#L50 int fd, status = 0, local = 0; int family = AF_UNSPEC; const char *syscall = 0; - VALUE resolv_timeout = arg->resolv_timeout; #ifdef HAVE_GETADDRINFO_A arg->remote.res = rsock_addrinfo_a(arg->remote.host, arg->remote.serv, family, SOCK_STREAM, (type == INET_SERVER) ? AI_PASSIVE : 0, - resolv_timeout); + arg->resolv_timeout); #else arg->remote.res = rsock_addrinfo(arg->remote.host, arg->remote.serv, family, SOCK_STREAM, -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/