Clear Coverity "Missing break in switch (MISSING_BREAK)"

CID 147882, 147880, 147879, 147876
pull/326/head
Jeffrey Walton 2016-10-01 00:51:33 -04:00
parent fd64929389
commit 8d840ecd8e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 4 additions and 0 deletions

View File

@ -397,6 +397,7 @@ bool SocketReceiver::Receive(byte* buf, size_t bufLen)
{
default:
m_s.CheckAndHandleError_int("WSARecv", SOCKET_ERROR);
// Fall through for non-fatal
case WSAEDISCON:
m_lastResult = 0;
m_eofReceived = true;
@ -432,6 +433,7 @@ unsigned int SocketReceiver::GetReceiveResult()
{
default:
m_s.CheckAndHandleError("WSAGetOverlappedResult", FALSE);
// Fall through for non-fatal
case WSAEDISCON:
m_lastResult = 0;
m_eofReceived = true;

View File

@ -114,6 +114,7 @@ bool WindowsPipeReceiver::Receive(byte* buf, size_t bufLen)
{
default:
CheckAndHandleError("ReadFile", false);
// Fall through for non-fatal
case ERROR_BROKEN_PIPE:
case ERROR_HANDLE_EOF:
m_lastResult = 0;
@ -154,6 +155,7 @@ unsigned int WindowsPipeReceiver::GetReceiveResult()
{
default:
CheckAndHandleError("GetOverlappedResult", false);
// Fall through for non-fatal
case ERROR_BROKEN_PIPE:
case ERROR_HANDLE_EOF:
m_lastResult = 0;