]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sockets/client.cpp
fix unused parameter warning after last change
[wxWidgets.git] / samples / sockets / client.cpp
index 8c336ba34e5c507727eec9c86f91b87cbfba4b5d..30f13995bcf932b941f3506b1a5bdca1d7da2a14 100644 (file)
@@ -287,18 +287,16 @@ void MyFrame::OnOpenConnectionIPv6(wxCommandEvent& WXUNUSED(event))
 void MyFrame::OpenConnection(int family)
 {
   wxIPaddress * addr;
+  wxIPV4address addr4;
 #if wxUSE_IPV6
   wxIPV6address addr6;
-  wxIPV4address addr4;
-  if(family==AF_INET6)
-  {
-    addr = & addr6;
-  } else {
-    addr = & addr4;
-  }
+  if ( family==AF_INET6 )
+    addr = &addr6;
+  else
+    addr = &addr4;
 #else
-  wxIPV4address addr4;
-  addr = & addr4;
+  wxUnusedVar(family);
+  addr = &addr4;
 #endif
 
   m_menuSocket->Enable(CLIENT_OPEN, false);