diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 738c7c832..089ee6061 100644 --- a/src/SFML/Network/Packet.cpp +++ b/src/SFML/Network/Packet.cpp @@ -405,7 +405,7 @@ Packet& Packet::operator <<(double data) Packet& Packet::operator <<(const char* data) { // First insert string length - Uint32 length = std::strlen(data); + Uint32 length = static_cast(std::strlen(data)); *this << length; // Then insert characters @@ -434,7 +434,7 @@ Packet& Packet::operator <<(const std::string& data) Packet& Packet::operator <<(const wchar_t* data) { // First insert string length - Uint32 length = std::wcslen(data); + Uint32 length = static_cast(std::wcslen(data)); *this << length; // Then insert characters diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index e364fc5de..76fb27a6b 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -291,7 +291,7 @@ sf::String JoystickImpl::getDeviceName(unsigned int index, JOYCAPS caps) //////////////////////////////////////////////////////////// -sf::String JoystickImpl::getErrorString(DWORD errorCode) +sf::String JoystickImpl::getErrorString(DWORD /*errorCode*/) { std::basic_ostringstream > ss; TCHAR errBuff[256];