diff --git a/src/oatpp/core/async/Processor.cpp b/src/oatpp/core/async/Processor.cpp index 09463ca3..381e3cd0 100644 --- a/src/oatpp/core/async/Processor.cpp +++ b/src/oatpp/core/async/Processor.cpp @@ -43,6 +43,8 @@ void Processor::addWorker(const std::shared_ptr& worker) { m_timerPopQueues.push_back(utils::FastQueue()); break; + case worker::Worker::Type::PROCESSOR: + case worker::Worker::Type::TYPES_COUNT: default: break; diff --git a/src/oatpp/network/tcp/client/ConnectionProvider.cpp b/src/oatpp/network/tcp/client/ConnectionProvider.cpp index 7423164a..4199b0b5 100644 --- a/src/oatpp/network/tcp/client/ConnectionProvider.cpp +++ b/src/oatpp/network/tcp/client/ConnectionProvider.cpp @@ -91,6 +91,7 @@ provider::ResourceHandle ConnectionProvider::get() { switch(m_address.family) { case Address::IP_4: hints.ai_family = AF_INET; break; case Address::IP_6: hints.ai_family = AF_INET6; break; + case Address::UNSPEC: default: hints.ai_family = AF_UNSPEC; } @@ -203,6 +204,7 @@ oatpp::async::CoroutineStarterForResultputHeaderIfNotExists(protocol::http::Header::CONNECTION, protocol::http::Header::Value::CONNECTION_CLOSE); break; + case ConnectionState::DELEGATED: default: break; @@ -368,6 +369,7 @@ HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::onResponseFormed() { m_currentResponse->putHeaderIfNotExists(protocol::http::Header::CONNECTION, protocol::http::Header::Value::CONNECTION_CLOSE); break; + case ConnectionState::DELEGATED: default: break; @@ -400,6 +402,8 @@ HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::onRequestDone() { break; } + case ConnectionState::CLOSING: + case ConnectionState::DEAD: default: break;