Boost logo

Boost Users :

Subject: [Boost-users] [test] gcc 4.2.1 unused warnings reappear in 1.39
From: Sebastian Hauer (sebastian.hauer_at_[hidden])
Date: 2009-07-04 11:09:42


Hello Boost Users,
I just upgraded from boost 1.38 to 1.39 on Mac OS X with darwin gcc
4.2.1 and noticed the following warnings:

   "g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -dynamic
-no-cpp-precomp -gdwarf-2 -arch x86_64 -fPIC -DBOOST_ALL_NO_LIB=1
-DBOOST_TEST_DYN_LINK -DSHARK_DEBUG -DSHARK_DYN_LINK
-I"/Users/hauer/sys/boost_1_39-darwin-x86_64-xgcc42/include"
-I"common/src" -I"utils/src" -c -o
"utils/bin/darwin-4.2.1/debug/address-model-64/architecture-x86/test/shark/dtm/DateParserTest.o"
"utils/test/shark/dtm/DateParserTest.cpp"

/Users/hauer/sys/boost_1_39-darwin-x86_64-xgcc42/include/boost/test/floating_point_comparison.hpp:224:
warning: ‘boost::test_tools::<unnamed>::check_is_close’ defined but
not used
/Users/hauer/sys/boost_1_39-darwin-x86_64-xgcc42/include/boost/test/floating_point_comparison.hpp:246:
warning: ‘boost::test_tools::<unnamed>::check_is_small’ defined but
not used

Following the thread here:
http://lists.boost.org/boost-users/2008/10/41326.php it seems that
this was already something that got addressed a while ago and if I
diff the header against 1.38 I notice this change for instance:

 namespace {
-check_is_close_t const& check_is_close =
unit_test::ut_detail::static_constant<check_is_close_t>::value;
+check_is_close_t check_is_close;
 }

Is there a reason why the static_constant template was removed and you
reverted back to the original version?

Regards,
Sebastian

PS: Below the original message from Gennadiy were he mentioned he
applied the static_constant patch.

On Fri, Nov 21, 2008 at 6:42 PM, Gennadiy Rozental<rogeeff_at_[hidden]> wrote:
> Juergen Hunold <juergen.hunold <at> ivembh.de> writes:
>
>> On Wednesday 05 November 2008 19:20:37 Mat Marcus wrote:
>> > On Mon, Oct 13, 2008 at 12:42 PM, Steven Watanabe <watanabesj <at>
>> > gmail.com>
>> > This trick seemed to work at first, but then when I ran the 1.37.0
>> > test tests I got:
>> >
>> > ..\..\libs\test\example\unit_test_example_10.cpp(75) : error C2039:
>> > 'check_is_close' : is not a member of 'boost::test_tools'
>> > ..\..\libs\test\example\unit_test_example_10.cpp(75) : error C2065:
>> > 'check_is_close' : undeclared identifier
>>
>> Did you try my patch as described in #2390 ?
>
> I've checked in patch along the line of what you proposed. Let's see if
> anything
> breaks.
>
> Gennadiy
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net