From 723eb953a1753f342f9ab57025e22dc5827d19c0 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 18 Jul 2020 14:08:08 +0200 Subject: [PATCH] Fixed gcc still erroring on warning, added newline after macro file. --- CMakeLists.txt | 2 +- src/ScriptResolving/AngelScript/TypeRegistry/HelperFile.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }