Skip to content

Commit

Permalink
Disable a useless cast in CMakeLists.txt.
Browse files Browse the repository at this point in the history
The uselessness of the cast depends on the platform, so silence the
warning.
  • Loading branch information
mordante committed Jun 29, 2014
1 parent 85b9bc6 commit 42cc3e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CMakeLists.txt
Expand Up @@ -1357,6 +1357,13 @@ if(ENABLE_TESTS)
)
endif(ENABLE_GAME)

set_source_files_properties(
tests/test_util.cpp
PROPERTIES
COMPILE_FLAGS
"${CXX_FLAG_NO_USELESS_CAST}"
)

add_executable(test
${test_SRC}
)
Expand Down

0 comments on commit 42cc3e7

Please sign in to comment.