mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 18:49:28 +00:00
cmake: Disable -Wno-old-style-cast on Lua unit tests
Otherwise strict compilation fails due to code using macros such as lua_number2int() which contain C-style casts.
This commit is contained in:
parent
6bc34aea7c
commit
20f67bf4a0
@ -393,6 +393,7 @@ set_source_files_properties(
|
||||
desktop/notifications.cpp
|
||||
network.cpp
|
||||
network_worker.cpp
|
||||
tests/test_lua.cpp
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "${CXX_FLAG_NO_OLD_STYLE_CAST}"
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user