remove wxSOCKET_MAX_EVENT, it is not really necessary and results in gcc warnings about unhandled enum value in switch in existing code (including our own sample)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -222,15 +222,14 @@ int wxSocketManagerMac::GetCFCallback(wxSocketImpl *socket, wxSocketNotify event
|
||||
return socket->IsServer() ? kCFSocketReadCallBack
|
||||
: kCFSocketConnectCallBack;
|
||||
|
||||
case wxSOCKET_LOST:
|
||||
case wxSOCKET_INPUT:
|
||||
return kCFSocketReadCallBack;
|
||||
|
||||
case wxSOCKET_OUTPUT:
|
||||
return kCFSocketWriteCallBack;
|
||||
|
||||
case wxSOCKET_MAX_EVENT:
|
||||
wxFAIL_MSG( "invalid wxSocketNotify" );
|
||||
case wxSOCKET_LOST:
|
||||
wxFAIL_MSG( "unexpected wxSocketNotify" );
|
||||
return 0;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user