Permalink
Browse files

fix compile warning / add safety check

  • Loading branch information...
abma committed Dec 23, 2017
1 parent 6806c36 commit bd18a813f4b96b480b14641cd78e7505e674eb4d
Showing with 5 additions and 3 deletions.
  1. +0 −2 CMakeLists.txt
  2. +5 −1 src/socket.cpp
View
@@ -3,8 +3,6 @@ PROJECT(springlobby)
#set minimum cmake version
cmake_minimum_required(VERSION 2.8.11)
CMAKE_POLICY(SET CMP0004 OLD)
SET(CMAKE_COLOR_MAKEFILE ON)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH} )
View
@@ -330,7 +330,7 @@ bool Socket::VerifyCertificate()
return true;
}
#else
void Socket::StartTLS(const std::string& fingerprint)
void Socket::StartTLS(const std::string& /*fingerprint*/)
{
wxLogWarning("TLS requested but not supported!");
}
@@ -456,6 +456,10 @@ bool Socket::Send(const std::string& data)
wxString convert(char* buff, const int len)
{
if (len == 0) {
return wxEmptyString;
}
wxString ret = wxString(buff, wxConvUTF8, len);
if (!ret.IsEmpty()) {
return ret;

0 comments on commit bd18a81

Please sign in to comment.