ruby-changes:38823
From: nobu <ko1@a...>
Date: Mon, 15 Jun 2015 08:41:23 +0900 (JST)
Subject: [ruby-changes:38823] nobu:r50904 (trunk): raddrinfo.c: suppress a warning
nobu 2015-06-15 08:40:51 +0900 (Mon, 15 Jun 2015) New Revision: 50904 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50904 Log: raddrinfo.c: suppress a warning * ext/socket/raddrinfo.c (parse_numeric_port): used only when inet_pton() is available. Modified files: trunk/ext/socket/raddrinfo.c Index: ext/socket/raddrinfo.c =================================================================== --- ext/socket/raddrinfo.c (revision 50903) +++ ext/socket/raddrinfo.c (revision 50904) @@ -154,6 +154,7 @@ struct getaddrinfo_arg https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L154 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, https://github.com/ruby/ruby/blob/trunk/ext/socket/raddrinfo.c#L180 return 1; } +#endif static void * nogvl_getaddrinfo(void *arg) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/