Fixed gcc still erroring on warning, added newline after macro file.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-07-18 14:08:08 +02:00
parent f1164f11a8
commit 723eb953a1
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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(); }
static returns* funcName##Wrapper(o* obj) { return obj->funcName().get(); }