Fix other compile errors

This commit is contained in:
Eduardo Bart 2013-01-29 16:56:50 -02:00
parent 80a7ecb3a4
commit ff9f82d0c8
3 changed files with 2 additions and 3 deletions

View File

@ -104,4 +104,4 @@ set(client_SOURCES ${client_SOURCES}
) )
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -O0") PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -Os")

View File

@ -129,7 +129,7 @@ set(framework_SOURCES ${framework_SOURCES}
) )
set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp set_source_files_properties(${CMAKE_CURRENT_LIST_DIR}/luafunctions.cpp
PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -O0") PROPERTIES LANGUAGE CXX COMPILE_FLAGS "-g0 -Os")
# some build options # some build options
option(CRASH_HANDLER "Generate crash reports" ON) option(CRASH_HANDLER "Generate crash reports" ON)

View File

@ -902,7 +902,6 @@ void LuaInterface::setEnv(int index)
{ {
assert(hasIndex(index)); assert(hasIndex(index));
lua_setfenv(L, index); lua_setfenv(L, index);
assert(ret == 1);
} }
void LuaInterface::getTable(int index) void LuaInterface::getTable(int index)