diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2015-07-28 22:43:16 +0200 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2015-07-28 22:43:16 +0200 |
commit | 69fa2fc671e7a02d416270d1d68df71a0f096714 (patch) | |
tree | 993632afeb269647802ec937848406c02a8a98fb /test/unit | |
parent | 68ecc043cc69917582d81ac3514372bc3f690e0b (diff) | |
download | fork-ledger-69fa2fc671e7a02d416270d1d68df71a0f096714.tar.gz fork-ledger-69fa2fc671e7a02d416270d1d68df71a0f096714.tar.bz2 fork-ledger-69fa2fc671e7a02d416270d1d68df71a0f096714.zip |
[tests] Remove compiler warnings for unit tests
warning: relational comparison result unused [-Wunused-comparison]
BOOST_CHECK_THROW(x6 < x7, amount_error);
~~~^~~~
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 654bda5f..b440d2ed 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -13,6 +13,7 @@ if (BUILD_LIBRARY) add_ledger_test(UtilTests) add_executable(MathTests t_amount.cc t_commodity.cc t_balance.cc t_expr.cc) + set_source_files_properties(t_amount.cc PROPERTIES COMPILE_FLAGS "-Wno-unused-comparison") if (CMAKE_SYSTEM_NAME STREQUAL Darwin AND HAVE_BOOST_PYTHON) target_link_libraries(MathTests ${PYTHON_LIBRARIES}) endif() |