Shut up a gcc warning

This commit is contained in:
Eelco Dolstra 2024-01-29 15:22:44 +01:00
parent 44a0d04483
commit f6719032cf
1 changed files with 2 additions and 2 deletions

View File

@ -412,7 +412,7 @@ TEST_F(ServeProtoTest, handshake_log)
toClient.create();
toServer.create();
ServeProto::Version clientResult, serverResult;
ServeProto::Version clientResult;
auto thread = std::thread([&]() {
FdSink out { toServer.writeSide.get() };
@ -425,7 +425,7 @@ TEST_F(ServeProtoTest, handshake_log)
{
FdSink out { toClient.writeSide.get() };
FdSource in { toServer.readSide.get() };
serverResult = ServeProto::BasicServerConnection::handshake(
ServeProto::BasicServerConnection::handshake(
out, in, defaultVersion);
};