Boost logo

Boost :

Subject: [boost] [test] spurious clang complier warnings
From: Ian Emmons (iemmons_at_[hidden])
Date: 2013-03-08 13:33:31

When I compile my test code with clang on Macintosh (now Apple's default compiler), I get the two compiler warnings listed below. Could these be suppressed, please? I know this is a low priority item, but I expect it's pretty easy to fix.

-Ian Emmons


In file included from MyTest.cpp:6:
In file included from ./MyTest.h:7:
In file included from /Users/iemmons/dev/boost_1_53_0/boost/test/unit_test.hpp:19:
In file included from /Users/iemmons/dev/boost_1_53_0/boost/test/test_tools.hpp:21:
/Users/iemmons/dev/boost_1_53_0/boost/test/floating_point_comparison.hpp:251:25: warning: unused variable 'check_is_close' [-Wunused-variable]
check_is_close_t const& check_is_close = unit_test::ut_detail::static_constant<check_is_close_t>::value;
/Users/iemmons/dev/boost_1_53_0/boost/test/floating_point_comparison.hpp:273:25: warning: unused variable 'check_is_small' [-Wunused-variable]
check_is_small_t const& check_is_small = unit_test::ut_detail::static_constant<check_is_small_t>::value;
2 warnings generated.

Boost list run by bdawes at, gregod at, cpdaniel at, john at