1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Add -Wshadow to CMakeLists and fix offenders

This commit is contained in:
Michał Janiszewski
2017-01-12 21:45:37 +01:00
parent 2a435bfdae
commit cf670deb10
12 changed files with 100 additions and 102 deletions

View File

@@ -333,18 +333,18 @@ public:
req->Port = port;
SDL_CreateThread([](void * pointer) -> int
{
auto req = static_cast<ConnectRequest *>(pointer);
auto req2 = static_cast<ConnectRequest *>(pointer);
try
{
req->Socket->Connect(req->Address.c_str(), req->Port);
req2->Socket->Connect(req2->Address.c_str(), req2->Port);
}
catch (const Exception & ex)
{
req->Socket->_error = std::string(ex.GetMessage());
req2->Socket->_error = std::string(ex.GetMessage());
}
SDL_UnlockMutex(req->Socket->_connectMutex);
delete req;
SDL_UnlockMutex(req2->Socket->_connectMutex);
delete req2;
return 0;
}, 0, req);
}