tolua++ bindings use nullptr. (#4219)
Fixes compilation with -Wzero-as-null-pointer-constant.
This commit is contained in:
parent
319b30eec6
commit
86a8fdf3fe
@ -1 +1 @@
|
||||
Subproject commit 988cab37e47a9efd7366d0d43babc58e068968d0
|
||||
Subproject commit 4a814cf1759c8a1d0917344397a84c917c74de97
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user