fix various warnings

Change-Id: Ib01f381cb1a1c2f7259269603a47c39e39808494
This commit is contained in:
Ilyas Erdogan
2025-06-05 17:12:28 -04:00
parent 0757c2cf70
commit ace9a0da42
3 changed files with 7 additions and 7 deletions

View File

@ -304,8 +304,6 @@ toString(AuthDecodingState state)
return "AUTH"sv;
case AuthDecodingState::DATA:
return "DATA"sv;
case AuthDecodingState::ERR:
return "ERR"sv;
case AuthDecodingState::AUTH_ERROR:
return "AUTH_ERROR"sv;
case AuthDecodingState::DONE:
@ -314,6 +312,9 @@ toString(AuthDecodingState state)
return "TIMEOUT"sv;
case AuthDecodingState::CANCELED:
return "CANCELED"sv;
case AuthDecodingState::ERR:
default:
return "ERR"sv;
}
}

View File

@ -53,10 +53,9 @@ public:
bool forceNewConnection = false)
= 0;
virtual void connect(const dht::InfoHash& infoHash,
const std::string& name,
ConnectCallbackLegacy&& cb)
{}
virtual void connect(const dht::InfoHash& /*infoHash*/,
const std::string& /*name*/,
ConnectCallbackLegacy&& /*cb*/) {}
/**
* Determine if we accept or not the request. Called when ConnectionManager receives a request

View File

@ -112,7 +112,7 @@ LinkDeviceTest::tearDown()
// try and cleanup the devices if the test fails or succeeds... this should usually fail due
// to newDeviceId already being destroyed and same with oldDeviceId
wait_for_removal_of({oldDeviceId, newDeviceId});
} catch (std::exception e) {
} catch (const std::exception& e) {
JAMI_WARNING("[ut_linkdevice] Error during account cleanup... this should be ok.");
}
}