From f2ef524b57650e3d61b2329e4243392352c343ff Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Sat, 19 Apr 2014 11:47:52 +0200 Subject: [PATCH] Fixed compile warnings --- src/SFML/Network/Packet.cpp | 4 ++-- src/SFML/Window/Win32/JoystickImpl.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SFML/Network/Packet.cpp b/src/SFML/Network/Packet.cpp index 738c7c83..089ee606 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 e364fc5d..76fb27a6 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];