Merge branch 'master' of github.com:edubart/otclient

This commit is contained in:
Eduardo Bart 2011-04-13 22:33:02 -03:00
commit f7b6be4fa4
4 changed files with 3 additions and 5 deletions

View File

@ -22,7 +22,7 @@ MESSAGE(STATUS "BUILD TYPE: " ${CMAKE_BUILD_TYPE})
# setup compiler options # setup compiler options
IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCXX)
SET(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-parameter -std=c++0x") SET(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror -Wno-unused-parameter -std=gnu++0x")
SET(CMAKE_CXX_FLAGS_DEBUG "-O1 -g -ggdb -fno-inline") SET(CMAKE_CXX_FLAGS_DEBUG "-O1 -g -ggdb -fno-inline")
SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wl,-s") SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wl,-s")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g") SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-O2 -g")

View File

@ -27,11 +27,11 @@
Protocol::Protocol() Protocol::Protocol()
{ {
m_connection = g_connections.createConnection(); m_connection = g_connections.createConnection();
m_connection->setErrorCallback( /*m_connection->setErrorCallback(
[this](const boost::system::error_code& error, const std::string& msg){ [this](const boost::system::error_code& error, const std::string& msg){
this->onError(error, msg); this->onError(error, msg);
} }
); );*/
} }
void Protocol::send(NetworkMessagePtr networkMessage, Connection::ConnectionCallback onSend) void Protocol::send(NetworkMessagePtr networkMessage, Connection::ConnectionCallback onSend)

View File

@ -21,7 +21,6 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "logger.h" #include "logger.h"
#include "util.h" #include "util.h"

View File

@ -21,7 +21,6 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#include "util.h" #include "util.h"
#include <cstdio> #include <cstdio>