From 1ab22a5672eeec31976dc2a34f8531aa00268663 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 14 Jun 2015 23:40:51 +0000 Subject: [PATCH] raddrinfo.c: suppress a warning * ext/socket/raddrinfo.c (parse_numeric_port): used only when inet_pton() is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/raddrinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c index 827d89e7f2..7aaa83128e 100644 --- a/ext/socket/raddrinfo.c +++ b/ext/socket/raddrinfo.c @@ -154,6 +154,7 @@ struct getaddrinfo_arg struct addrinfo **res; }; +#ifdef HAVE_INET_PTON static int parse_numeric_port(const char *service, int *portp) { @@ -179,6 +180,7 @@ parse_numeric_port(const char *service, int *portp) return 1; } +#endif static void * nogvl_getaddrinfo(void *arg)