mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 11:35:12 +00:00
Disable null conversion warning in CMake.
It gives problems when using Clang and boost::shared_ptr when compiling for C++11. The issue can't be fixed since Wesnoth uses C++98. (So we use NULL instead of nullptr.)
This commit is contained in:
parent
4b059500c9
commit
5301eedbe6
@ -280,6 +280,13 @@ check_compiler_has_flag(
|
||||
"-Wno-mismatched-tags"
|
||||
)
|
||||
|
||||
check_compiler_has_flag(
|
||||
CXX_FLAGS_STRICT_COMPILATION
|
||||
"-Wnull-conversion"
|
||||
HAS_COMPILER_FLAG_WNULL_CONVERSION
|
||||
"-Wno-null-conversion"
|
||||
)
|
||||
|
||||
if(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
# Silences warnings about overloaded virtuals.
|
||||
# (GCC doesn't complain Clang does.)
|
||||
|
Loading…
x
Reference in New Issue
Block a user