Clear Coverity "Missing break in switch (MISSING_BREAK)"
CID 147882, 147880, 147879, 147876pull/326/head
parent
fd64929389
commit
8d840ecd8e
|
|
@ -397,6 +397,7 @@ bool SocketReceiver::Receive(byte* buf, size_t bufLen)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
m_s.CheckAndHandleError_int("WSARecv", SOCKET_ERROR);
|
m_s.CheckAndHandleError_int("WSARecv", SOCKET_ERROR);
|
||||||
|
// Fall through for non-fatal
|
||||||
case WSAEDISCON:
|
case WSAEDISCON:
|
||||||
m_lastResult = 0;
|
m_lastResult = 0;
|
||||||
m_eofReceived = true;
|
m_eofReceived = true;
|
||||||
|
|
@ -432,6 +433,7 @@ unsigned int SocketReceiver::GetReceiveResult()
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
m_s.CheckAndHandleError("WSAGetOverlappedResult", FALSE);
|
m_s.CheckAndHandleError("WSAGetOverlappedResult", FALSE);
|
||||||
|
// Fall through for non-fatal
|
||||||
case WSAEDISCON:
|
case WSAEDISCON:
|
||||||
m_lastResult = 0;
|
m_lastResult = 0;
|
||||||
m_eofReceived = true;
|
m_eofReceived = true;
|
||||||
|
|
|
||||||
|
|
@ -114,6 +114,7 @@ bool WindowsPipeReceiver::Receive(byte* buf, size_t bufLen)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
CheckAndHandleError("ReadFile", false);
|
CheckAndHandleError("ReadFile", false);
|
||||||
|
// Fall through for non-fatal
|
||||||
case ERROR_BROKEN_PIPE:
|
case ERROR_BROKEN_PIPE:
|
||||||
case ERROR_HANDLE_EOF:
|
case ERROR_HANDLE_EOF:
|
||||||
m_lastResult = 0;
|
m_lastResult = 0;
|
||||||
|
|
@ -154,6 +155,7 @@ unsigned int WindowsPipeReceiver::GetReceiveResult()
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
CheckAndHandleError("GetOverlappedResult", false);
|
CheckAndHandleError("GetOverlappedResult", false);
|
||||||
|
// Fall through for non-fatal
|
||||||
case ERROR_BROKEN_PIPE:
|
case ERROR_BROKEN_PIPE:
|
||||||
case ERROR_HANDLE_EOF:
|
case ERROR_HANDLE_EOF:
|
||||||
m_lastResult = 0;
|
m_lastResult = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue