1
0

tolua++ bindings use nullptr. (#4219)

Fixes compilation with -Wzero-as-null-pointer-constant.
This commit is contained in:
peterbell10 2018-04-27 22:22:41 +01:00 committed by Mattes D
parent 319b30eec6
commit 86a8fdf3fe
2 changed files with 2 additions and 5 deletions

@ -1 +1 @@
Subproject commit 988cab37e47a9efd7366d0d43babc58e068968d0
Subproject commit 4a814cf1759c8a1d0917344397a84c917c74de97

View File

@ -168,10 +168,7 @@ set_source_files_properties(${BINDING_OUTPUTS} PROPERTIES GENERATED TRUE)
set_source_files_properties(${CMAKE_SOURCE_DIR}/src/Bindings/Bindings.cpp PROPERTIES COMPILE_FLAGS -Wno-error)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
if(NOT APPLE AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5) # Workaround for VERSION_GREATER_EQUAL, which is only supported on CMake 3.7+
set(ADDITIONAL_FLAGS "-Wno-zero-as-null-pointer-constant")
endif()
set_source_files_properties(Bindings.cpp PROPERTIES COMPILE_FLAGS "-Wno-old-style-cast -Wno-missing-prototypes ${ADDITIONAL_FLAGS}")
set_source_files_properties(Bindings.cpp PROPERTIES COMPILE_FLAGS "-Wno-old-style-cast -Wno-missing-prototypes")
endif()
if(NOT MSVC)