Browse Source

Fix more warnings (#260).

pull/263/head
EinMByte 9 years ago
parent
commit
6dd36b8289
  1. 2
      CMakeLists.txt
  2. 4
      client/i2pcontrol/I2PControlServer.cpp
  3. 4
      client/i2pcontrol/I2PControlServer.h

2
CMakeLists.txt

@ -60,7 +60,7 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
) )
endif() endif()
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -undefined dynamic_lookup") # TODO: Clang-specific flags
endif() endif()
# Compiler flags customization (by system) # Compiler flags customization (by system)

4
client/i2pcontrol/I2PControlServer.cpp

@ -158,8 +158,8 @@ void I2PControlService::SendResponse(std::shared_ptr<boost::asio::ip::tcp::socke
); );
} }
void I2PControlService::HandleResponseSent(const boost::system::error_code& ecode, std::size_t bytes_transferred, void I2PControlService::HandleResponseSent(const boost::system::error_code& ecode, std::size_t,
std::shared_ptr<boost::asio::ip::tcp::socket> socket, std::shared_ptr<I2PControlBuffer> buf) std::shared_ptr<boost::asio::ip::tcp::socket> socket, std::shared_ptr<I2PControlBuffer>)
{ {
if(ecode) if(ecode)
LogPrint(eLogError, "I2PControl write error: ", ecode.message()); LogPrint(eLogError, "I2PControl write error: ", ecode.message());

4
client/i2pcontrol/I2PControlServer.h

@ -40,14 +40,14 @@ private:
private: private:
std::shared_ptr<I2PControlSession> m_Session;
bool m_IsRunning; bool m_IsRunning;
std::thread * m_Thread; std::thread * m_Thread;
boost::asio::io_service m_Service; boost::asio::io_service m_Service;
boost::asio::ip::tcp::acceptor m_Acceptor; boost::asio::ip::tcp::acceptor m_Acceptor;
std::shared_ptr<I2PControlSession> m_Session;
}; };
} }
} }

Loading…
Cancel
Save