diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e30f0e..e7670c3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ if (WINDOWS) endif (WINDOWS) if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU") - add_compile_options(-Wno-error=cast-function-type -Wno-error=type-limits) + add_compile_options(-Wno-error=cast-function-type -Wno-cast-function-type) endif () message(STATUS "Using: diff --git a/src/ScriptResolving/AngelScript/TypeRegistry/HelperFile.hpp b/src/ScriptResolving/AngelScript/TypeRegistry/HelperFile.hpp index 463f086..83d0ac7 100644 --- a/src/ScriptResolving/AngelScript/TypeRegistry/HelperFile.hpp +++ b/src/ScriptResolving/AngelScript/TypeRegistry/HelperFile.hpp @@ -1,4 +1,4 @@ #define BORROWED_PTR_GETTER_FUNC(o, returns, funcName) \ static returns* funcName##Wrapper(o* obj) { return obj->funcName().GetRaw(); } #define UNIQUE_PTR_GETTER_FUNC(o, returns, funcName) \ - static returns* funcName##Wrapper(o* obj) { return obj->funcName().get(); } \ No newline at end of file + static returns* funcName##Wrapper(o* obj) { return obj->funcName().get(); }