requesthandler,websocketserver: Fix C4101 warnings

This commit is contained in:
tytan652 2022-07-26 21:48:56 +02:00 committed by tt2468
parent 773f85e0d7
commit 190a9551f6
2 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ RequestResult RequestHandler::ProcessRequest(const Request &request)
try {
handler = _handlerMap.at(request.RequestType);
} catch (const std::out_of_range &oor) {
UNUSED_PARAMETER(oor);
return RequestResult::Error(RequestStatus::UnknownRequestType, "Your request type is not valid.");
}

View File

@ -373,6 +373,7 @@ void WebSocketServer::onMessage(websocketpp::connection_hdl hdl,
try {
session = _sessions.at(hdl);
} catch (const std::out_of_range &oor) {
UNUSED_PARAMETER(oor);
return;
}
lock.unlock();