More warnings fixes

This commit is contained in:
Subv
2014-07-13 16:49:56 -05:00
parent f6962f9c68
commit f14399d788
3 changed files with 5 additions and 5 deletions

View File

@@ -34,8 +34,8 @@ public:
};
AsyncAcceptor(boost::asio::io_service& ioService, std::string bindIp, int port, bool tcpNoDelay) :
_socket(ioService),
_acceptor(ioService, tcp::endpoint(boost::asio::ip::address::from_string(bindIp), port))
_acceptor(ioService, tcp::endpoint(boost::asio::ip::address::from_string(bindIp), port)),
_socket(ioService)
{
_acceptor.set_option(boost::asio::ip::tcp::no_delay(tcpNoDelay));

View File

@@ -215,7 +215,7 @@ void RASession::CommandPrint(void* callbackArg, const char* text)
session->Send(text);
}
void RASession::CommandFinished(void* callbackArg, bool success)
void RASession::CommandFinished(void* callbackArg, bool /*success*/)
{
RASession* session = static_cast<RASession*>(callbackArg);
session->_commandExecuting->set_value();

View File

@@ -41,7 +41,7 @@ public:
void Start();
const std::string GetRemoteIpAddress() const { return _socket.remote_endpoint().address().to_string(); };
const std::string GetRemoteIpAddress() const { return _socket.remote_endpoint().address().to_string(); }
unsigned short GetRemotePort() const { return _socket.remote_endpoint().port(); }
private:
@@ -52,7 +52,7 @@ private:
bool ProcessCommand(std::string& command);
static void CommandPrint(void* callbackArg, const char* text);
static void CommandFinished(void* callbackArg, bool success);
static void CommandFinished(void* callbackArg, bool);
tcp::socket _socket;
boost::asio::streambuf _readBuffer;