From d2e8643607424cd74616e2e863f5609e7b8458a5 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 24 Aug 2016 21:45:03 +0200 Subject: Fixed type-casting-related warnings. --- tests/ChunkData/CMakeLists.txt | 5 ----- tests/ChunkData/CopyBlocks.cpp | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'tests/ChunkData') diff --git a/tests/ChunkData/CMakeLists.txt b/tests/ChunkData/CMakeLists.txt index 9fdcd4650..61cb8e7c6 100644 --- a/tests/ChunkData/CMakeLists.txt +++ b/tests/ChunkData/CMakeLists.txt @@ -1,11 +1,6 @@ enable_testing() include_directories(${CMAKE_SOURCE_DIR}/src/) -if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") - add_flags_cxx("-Wno-error=old-style-cast") - set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ChunkData.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=sign-conversion") - set_source_files_properties(${CMAKE_SOURCE_DIR}/src/StringUtils.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=conversion") -endif() add_definitions(-DTEST_GLOBALS=1) diff --git a/tests/ChunkData/CopyBlocks.cpp b/tests/ChunkData/CopyBlocks.cpp index b76b2d420..8253ac2ec 100644 --- a/tests/ChunkData/CopyBlocks.cpp +++ b/tests/ChunkData/CopyBlocks.cpp @@ -51,7 +51,7 @@ int main(int argc, char ** argv) { if (idx / 500 != LastReportedStep) { - printf("Testing index %u...\n", (unsigned)idx); + printf("Testing index %u...\n", static_cast(idx)); LastReportedStep = idx / 500; } -- cgit v1.2.3