mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
More warnings fixes
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user