fix unused parameter warning after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -287,18 +287,16 @@ void MyFrame::OnOpenConnectionIPv6(wxCommandEvent& WXUNUSED(event))
|
|||||||
void MyFrame::OpenConnection(int family)
|
void MyFrame::OpenConnection(int family)
|
||||||
{
|
{
|
||||||
wxIPaddress * addr;
|
wxIPaddress * addr;
|
||||||
|
wxIPV4address addr4;
|
||||||
#if wxUSE_IPV6
|
#if wxUSE_IPV6
|
||||||
wxIPV6address addr6;
|
wxIPV6address addr6;
|
||||||
wxIPV4address addr4;
|
if ( family==AF_INET6 )
|
||||||
if(family==AF_INET6)
|
addr = &addr6;
|
||||||
{
|
else
|
||||||
addr = & addr6;
|
addr = &addr4;
|
||||||
} else {
|
|
||||||
addr = & addr4;
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
wxIPV4address addr4;
|
wxUnusedVar(family);
|
||||||
addr = & addr4;
|
addr = &addr4;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
m_menuSocket->Enable(CLIENT_OPEN, false);
|
m_menuSocket->Enable(CLIENT_OPEN, false);
|
||||||
|
Reference in New Issue
Block a user