Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75723 - in sandbox/big_number: boost/multiprecision libs/multiprecision/test
From: john_at_[hidden]
Date: 2011-11-29 07:27:41


Author: johnmaddock
Date: 2011-11-29 07:27:40 EST (Tue, 29 Nov 2011)
New Revision: 75723
URL: http://svn.boost.org/trac/boost/changeset/75723

Log:
Suppress some GCC warnings.
Text files modified:
   sandbox/big_number/boost/multiprecision/cpp_float.hpp | 2 +-
   sandbox/big_number/libs/multiprecision/test/test_acos.cpp | 1 -
   sandbox/big_number/libs/multiprecision/test/test_cos.cpp | 2 --
   sandbox/big_number/libs/multiprecision/test/test_sin.cpp | 2 --
   4 files changed, 1 insertions(+), 6 deletions(-)

Modified: sandbox/big_number/boost/multiprecision/cpp_float.hpp
==============================================================================
--- sandbox/big_number/boost/multiprecision/cpp_float.hpp (original)
+++ sandbox/big_number/boost/multiprecision/cpp_float.hpp 2011-11-29 07:27:40 EST (Tue, 29 Nov 2011)
@@ -1218,7 +1218,7 @@
 
    static const boost::uint32_t double_digits10_minus_one = std::numeric_limits<double>::digits10 - 1;
 
- for(boost::uint32_t digits = double_digits10_minus_one; digits <= cpp_float_max_digits10; digits *= 2u)
+ for(boost::int32_t digits = double_digits10_minus_one; digits <= cpp_float_max_digits10; digits *= 2u)
    {
       // Adjust precision of the terms.
       precision(digits * 2);

Modified: sandbox/big_number/libs/multiprecision/test/test_acos.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_acos.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_acos.cpp 2011-11-29 07:27:40 EST (Tue, 29 Nov 2011)
@@ -69,7 +69,6 @@
       {{-std::ldexp(1.0, -20), "1.57079728046921302562588198130454453120080334771863020290704515097032859824172056132832858516107615934431126321507917538" }},
       {{-1, "3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230665" }},
    }};
- T half_pi = "1.57079632679489661923132169163975144209858469968755291048747229615390820314310449931401741267105853399107404325664115332354692230477529111586267970406424055872514205135096926055277982231147447746519098221440548783296672306423782411689339158263560095457282428346173017430522716332410669680363012457064";
    unsigned max_err = 0;
    for(unsigned k = 0; k < exact_data.size(); k++)
    {

Modified: sandbox/big_number/libs/multiprecision/test/test_cos.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_cos.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_cos.cpp 2011-11-29 07:27:40 EST (Tue, 29 Nov 2011)
@@ -152,8 +152,6 @@
          T("-5.01621542149055350065079347615664213658089623368745676779267390227688581807037821041573344917735076902116221444127518632e-1"),
    }};
 
- T eg = "5.77215664901532860606512090082402431042159335939923598805767234884867726777664670936947063291746749514631447249807082480960504014486542836224173997644923536253500333742937337737673942792595258247094916008735203948165670853233151776611528621199501507984793745085705740029921354786146694029604325421519e-1";
-
    boost::uintmax_t max_err = 0;
    for(unsigned k = 0; k < data.size(); k++)
    {

Modified: sandbox/big_number/libs/multiprecision/test/test_sin.cpp
==============================================================================
--- sandbox/big_number/libs/multiprecision/test/test_sin.cpp (original)
+++ sandbox/big_number/libs/multiprecision/test/test_sin.cpp 2011-11-29 07:27:40 EST (Tue, 29 Nov 2011)
@@ -152,8 +152,6 @@
 T("8.65087179683067252708187359165577777305998628817518314353161876891989239932835217904989326717355654871984067712207255166e-1"),
    }};
 
- T eg = "5.77215664901532860606512090082402431042159335939923598805767234884867726777664670936947063291746749514631447249807082480960504014486542836224173997644923536253500333742937337737673942792595258247094916008735203948165670853233151776611528621199501507984793745085705740029921354786146694029604325421519e-1";
-
    boost::uintmax_t max_err = 0;
    for(unsigned k = 0; k < data.size(); k++)
    {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk