Merge pull request #11687 from Minty-Meeo/warnings

Resolve GCC/Clang Warnings
This commit is contained in:
Léo Lam
2023-04-14 01:29:46 +01:00
committed by GitHub
22 changed files with 75 additions and 108 deletions

View File

@ -254,7 +254,8 @@ bool NetPlayClient::Connect()
// TODO: make this not hang
ENetEvent netEvent;
int net;
while ((net = enet_host_service(m_client, &netEvent, 5000)) > 0 && netEvent.type == 42)
while ((net = enet_host_service(m_client, &netEvent, 5000)) > 0 &&
netEvent.type == ENetEventType(42)) // See PR #11381 and ENetUtil::InterceptCallback
{
// ignore packets from traversal server
}