[tests] Remove compiler warnings for unit tests

warning: equality comparison result unused [-Wunused-comparison]
  BOOST_CHECK_THROW(v8 == v10, value_error);
                    ~~~^~~~~~
This commit is contained in:
Alexis Hildebrandt 2015-09-15 16:09:08 +02:00
parent 38315cfba2
commit 32eca73479

View file

@ -15,7 +15,7 @@ if (BUILD_LIBRARY)
add_ledger_test(UtilTests)
add_executable(MathTests t_amount.cc t_commodity.cc t_balance.cc t_expr.cc t_value.cc)
set_source_files_properties(t_amount.cc PROPERTIES COMPILE_FLAGS "-Wno-unused-comparison")
set_source_files_properties(t_amount.cc t_value.cc PROPERTIES COMPILE_FLAGS "-Wno-unused-comparison")
if (CMAKE_SYSTEM_NAME STREQUAL Darwin AND HAVE_BOOST_PYTHON)
target_link_libraries(MathTests ${PYTHON_LIBRARIES})
endif()