Skip to content

Commit

Permalink
cmake: Disable -Wno-old-style-cast on Lua unit tests
Browse files Browse the repository at this point in the history
Otherwise strict compilation fails due to code using macros such as
lua_number2int() which contain C-style casts.
  • Loading branch information
irydacea committed Apr 19, 2016
1 parent 6bc34ae commit 20f67bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Expand Up @@ -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}"
)
Expand Down

0 comments on commit 20f67bf

Please sign in to comment.