]> git.saurik.com Git - wxWidgets.git/commitdiff
Suppress harmless unused variable warnings in wxSocket under AIX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Oct 2011 14:24:54 +0000 (14:24 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 31 Oct 2011 14:24:54 +0000 (14:24 +0000)
The size of the buffer is not used with AIX conventions for gethostbyaddr_r()
and getservbyname_r() functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/sckaddr.cpp

index 121e8b0d7f5a3b0a18a3afae15eb1ffb976685dc..0e1a95c96e53d92007d14644063d63ad1fc66cae 100644 (file)
@@ -273,6 +273,7 @@ hostent *wxGethostbyname_r(const char *hostname,
 #elif defined(HAVE_FUNC_GETHOSTBYNAME_R_5)
     he = gethostbyname_r(hostname, h, buffer, size, err);
 #elif defined(HAVE_FUNC_GETHOSTBYNAME_R_3)
+    wxUnusedVar(var);
     *err = gethostbyname_r(hostname, h,  &buffer);
     he = h;
 #elif defined(HAVE_GETHOSTBYNAME)
@@ -304,6 +305,7 @@ hostent *wxGethostbyaddr_r(const char *addr_buf,
 #elif defined(HAVE_FUNC_GETHOSTBYADDR_R_5)
     he = gethostbyaddr_r(addr_buf, buf_size, proto, h, buffer, size, err);
 #elif defined(HAVE_FUNC_GETHOSTBYADDR_R_3)
+    wxUnusedVar(size);
     *err = gethostbyaddr_r(addr_buf, buf_size, proto, h, &buffer);
     he = h;
 #elif defined(HAVE_GETHOSTBYADDR)
@@ -397,6 +399,7 @@ servent *wxGetservbyname_r(const char *port,
 #elif defined(HAVE_FUNC_GETSERVBYNAME_R_5)
     se = getservbyname_r(port, protocol, serv, buffer, size);
 #elif defined(HAVE_FUNC_GETSERVBYNAME_R_4)
+    wxUnusedVar(size);
     if ( getservbyname_r(port, protocol, serv, &buffer) != 0 )
         return NULL;
 #elif defined(HAVE_GETSERVBYNAME)