From 950614b08845b93fe1f20350437917b0e44bc030 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Sun, 27 Sep 2020 02:38:08 +0900 Subject: [PATCH] ext/socket/ipsocket.c: prevent "warning: unused variable 'resolv_timeout'" --- ext/socket/ipsocket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c index e2b7308b83..96782c76e5 100644 --- a/ext/socket/ipsocket.c +++ b/ext/socket/ipsocket.c @@ -50,13 +50,12 @@ init_inetsock_internal(VALUE v) 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,