Fix some harmless compiler warnings

This commit is contained in:
Cameron Gutman 2024-03-26 21:59:39 -05:00
commit 9be782ae8e
2 changed files with 2 additions and 2 deletions

View file

@ -785,7 +785,7 @@ private:
} catch (...) { } catch (...) {
if (!m_Mdns) { if (!m_Mdns) {
StreamingPreferences prefs; StreamingPreferences prefs;
int portTestResult; unsigned int portTestResult;
if (prefs.detectNetworkBlocking) { if (prefs.detectNetworkBlocking) {
// We failed to connect to the specified PC. Let's test to make sure this network // We failed to connect to the specified PC. Let's test to make sure this network

View file

@ -114,7 +114,7 @@ void SdlInputHandler::performSpecialKeyCombo(KeyCombo combo)
} }
// Send this text to the PC // Send this text to the PC
LiSendUtf8TextEvent(text, strlen(text)); LiSendUtf8TextEvent(text, (unsigned int)strlen(text));
// SDL_GetClipboardText() allocates, so we must free // SDL_GetClipboardText() allocates, so we must free
SDL_free((void*)text); SDL_free((void*)text);