diff --git a/src/protocols/secure_channel/CASEServer.cpp b/src/protocols/secure_channel/CASEServer.cpp index 2a6a7783d6bf16..8eb131204c342b 100644 --- a/src/protocols/secure_channel/CASEServer.cpp +++ b/src/protocols/secure_channel/CASEServer.cpp @@ -162,7 +162,7 @@ void CASEServer::OnSessionEstablishmentError(CHIP_ERROR err) // from a SessionDelegate::OnSessionReleased callback. Schedule the preparation as an async work item. // mSessionManager->SystemLayer()->ScheduleWork( - [](auto * systemLayer, auto * appState) { + [](auto * systemLayer, auto * appState) -> void { CASEServer * _this = static_cast(appState); _this->PrepareForSessionEstablishment(); },