|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57921 - trunk/libs/unordered/test/unordered
From: daniel_james_at_[hidden]
Date: 2009-11-25 04:14:18
Author: danieljames
Date: 2009-11-25 04:14:16 EST (Wed, 25 Nov 2009)
New Revision: 57921
URL: http://svn.boost.org/trac/boost/changeset/57921
Log:
Suppress some warnings on visual c++ 7.1.
Text files modified:
trunk/libs/unordered/test/unordered/bucket_tests.cpp | 5 +++++
trunk/libs/unordered/test/unordered/compile_tests.hpp | 2 ++
trunk/libs/unordered/test/unordered/erase_equiv_tests.cpp | 5 +++++
3 files changed, 12 insertions(+), 0 deletions(-)
Modified: trunk/libs/unordered/test/unordered/bucket_tests.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/bucket_tests.cpp (original)
+++ trunk/libs/unordered/test/unordered/bucket_tests.cpp 2009-11-25 04:14:16 EST (Wed, 25 Nov 2009)
@@ -11,6 +11,11 @@
#include "../helpers/random_values.hpp"
#include "../helpers/helpers.hpp"
+#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
+#pragma warning(disable:4267) // conversion from 'size_t' to 'unsigned int',
+ // possible loss of data.
+#endif
+
namespace bucket_tests {
test::seed_t seed(54635);
Modified: trunk/libs/unordered/test/unordered/compile_tests.hpp
==============================================================================
--- trunk/libs/unordered/test/unordered/compile_tests.hpp (original)
+++ trunk/libs/unordered/test/unordered/compile_tests.hpp 2009-11-25 04:14:16 EST (Wed, 25 Nov 2009)
@@ -6,6 +6,8 @@
#if defined(BOOST_MSVC)
#pragma warning(push)
#pragma warning(disable:4100) // unreferenced formal parameter
+#pragma warning(disable:4610) // class can never be instantiated
+#pragma warning(disable:4510) // default constructor could not be generated
#endif
#include <boost/concept_check.hpp>
Modified: trunk/libs/unordered/test/unordered/erase_equiv_tests.cpp
==============================================================================
--- trunk/libs/unordered/test/unordered/erase_equiv_tests.cpp (original)
+++ trunk/libs/unordered/test/unordered/erase_equiv_tests.cpp 2009-11-25 04:14:16 EST (Wed, 25 Nov 2009)
@@ -15,6 +15,11 @@
#include <boost/next_prior.hpp>
#include "../objects/test.hpp"
+#if BOOST_WORKAROUND(BOOST_MSVC, <= 1300)
+#pragma warning(disable:4267) // conversion from 'size_t' to 'unsigned int',
+ // possible loss of data.
+#endif
+
struct write_pair_type
{
template <class X1, class X2>
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