Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50721 - sandbox/math_toolkit/libs/math/test
From: pbristow_at_[hidden]
Date: 2009-01-22 04:48:57


Author: pbristow
Date: 2009-01-22 04:48:57 EST (Thu, 22 Jan 2009)
New Revision: 50721
URL: http://svn.boost.org/trac/boost/changeset/50721

Log:
Warning suppression

Text files modified:
   sandbox/math_toolkit/libs/math/test/test_remez.cpp | 1 +
   sandbox/math_toolkit/libs/math/test/test_round.cpp | 6 +++---
   sandbox/math_toolkit/libs/math/test/test_tr1.cpp | 5 +++++
   3 files changed, 9 insertions(+), 3 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_remez.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_remez.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_remez.cpp 2009-01-22 04:48:57 EST (Thu, 22 Jan 2009)
@@ -10,6 +10,7 @@
 # pragma warning(disable : 4267) // conversion from 'size_t' to 'const unsigned int', possible loss of data
 # pragma warning(disable : 4180) // qualifier applied to function type has no meaning; ignored
 # pragma warning(disable : 4224) // nonstandard extension used : formal parameter 'function_ptr' was previously defined as a type
+# pragma warning(disable : 4100) // unreferenced formal parameter (in ublas/functional)
 #endif
 
 #include <boost/math/tools/remez.hpp>

Modified: sandbox/math_toolkit/libs/math/test/test_round.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_round.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_round.cpp 2009-01-22 04:48:57 EST (Thu, 22 Jan 2009)
@@ -20,7 +20,7 @@
 T get_random()
 {
    //
- // Fill all the bits in T with random values,
+ // Fill all the bits in T with random values,
    // likewise set the exponent to a random value
    // that will still fit inside a T, and always
    // have a remainder as well as an integer part.
@@ -108,7 +108,7 @@
 }
 
 template <class T>
-void test_round(T, const char* name)
+void test_round(T, const char* /* name */)
 {
    BOOST_MATH_STD_USING
 
@@ -131,7 +131,7 @@
          r = boost::math::modf(arg, &i);
          check_modf_result(arg, r, i);
       }
-
+
       if(abs(r) < (std::numeric_limits<long>::max)())
       {
          long l = boost::math::lround(arg);

Modified: sandbox/math_toolkit/libs/math/test/test_tr1.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_tr1.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_tr1.cpp 2009-01-22 04:48:57 EST (Thu, 22 Jan 2009)
@@ -3,6 +3,11 @@
 // Boost Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+#ifdef _MSC_VER
+# pragma warning (disable : 4100) // unreferenced formal parameter
+// Can't just comment parameter out because reference or not depends on macro define.
+#endif
+
 #include <boost/test/included/test_exec_monitor.hpp>
 #include <boost/test/floating_point_comparison.hpp>
 #include <boost/math/tools/precision.hpp>


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