|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64476 - sandbox/SOC/2010/bit_masks/lib/integer/test
From: bbartmanboost_at_[hidden]
Date: 2010-07-30 13:48:57
Author: bbartman
Date: 2010-07-30 13:48:56 EDT (Fri, 30 Jul 2010)
New Revision: 64476
URL: http://svn.boost.org/trac/boost/changeset/64476
Log:
attempting to correctly suppress warnings comming from inside of the high_bits_mask_test
Text files modified:
sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp | 22 ++++++----------------
1 files changed, 6 insertions(+), 16 deletions(-)
Modified: sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp
==============================================================================
--- sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp (original)
+++ sandbox/SOC/2010/bit_masks/lib/integer/test/high_bit_mask_test.cpp 2010-07-30 13:48:56 EDT (Fri, 30 Jul 2010)
@@ -13,7 +13,10 @@
#include <iomanip>
-
+#ifdef BOOST_MSVC
+#pragma warning( push )
+#pragma warning(disable : 4127) // constant inside of condiditional expression
+#endif
// tesitng for bit width.
using namespace boost;
@@ -65,24 +68,11 @@
int main() {
-#ifdef BOOST_MSVC
-#pragma warning( push )
-#pragma warning( disable : 4307 ) // c4307 constant value overflow.
-#pragma warning( disable : 4309 ) // truncation of constant value.
-
-// Look into fixing this! I think i can actually fix this warning.
-#pragma warning( disable : 4305 ) // initializing truncation from const
- // boost::mpl::size_t<N>::value_type to const
- // arg.
-#endif
-
mpl::for_each< test_types >( type_tester() );
mpl::for_each< test_types_2 >( type_tester() );
mpl::for_each< test_types_3 >( type_tester() );
-
+ return boost::report_errors();
+}
#ifdef BOOST_MSVC
#pragma warning( pop )
#endif
-
- return boost::report_errors();
-}
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