Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57996 - in trunk: boost libs/foreach/test
From: john_at_[hidden]
Date: 2009-11-28 05:26:29


Author: johnmaddock
Date: 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
New Revision: 57996
URL: http://svn.boost.org/trac/boost/changeset/57996

Log:
Suppress msvc warnings.
Refs #3686.
Text files modified:
   trunk/boost/foreach.hpp | 2 +-
   trunk/libs/foreach/test/Jamfile.v2 | 2 ++
   trunk/libs/foreach/test/array_byval.cpp | 2 +-
   trunk/libs/foreach/test/array_byval_r.cpp | 1 +
   trunk/libs/foreach/test/cstr_byval.cpp | 1 +
   trunk/libs/foreach/test/cstr_byval_r.cpp | 1 +
   trunk/libs/foreach/test/pair_byval.cpp | 1 +
   trunk/libs/foreach/test/pair_byval_r.cpp | 1 +
   trunk/libs/foreach/test/stl_byval.cpp | 1 +
   trunk/libs/foreach/test/stl_byval_r.cpp | 1 +
   10 files changed, 11 insertions(+), 2 deletions(-)

Modified: trunk/boost/foreach.hpp
==============================================================================
--- trunk/boost/foreach.hpp (original)
+++ trunk/boost/foreach.hpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -705,7 +705,7 @@
 #ifndef BOOST_NO_FUNCTION_TEMPLATE_ORDERING
 template<typename T, typename C>
 inline auto_any<int>
-end(auto_any_t col, type2type<T *, C> *, boost::mpl::true_ *) // null-terminated C-style strings
+end(auto_any_t, type2type<T *, C> *, boost::mpl::true_ *) // null-terminated C-style strings
 {
     return 0; // not used
 }

Modified: trunk/libs/foreach/test/Jamfile.v2
==============================================================================
--- trunk/libs/foreach/test/Jamfile.v2 (original)
+++ trunk/libs/foreach/test/Jamfile.v2 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -5,6 +5,8 @@
 # bring in rules for testing
 import testing ;
 
+project : requirements <toolset>msvc:<asynch-exceptions>on ;
+
 test-suite "foreach"
     : [ run stl_byval.cpp ]
       [ run stl_byref.cpp ]

Modified: trunk/libs/foreach/test/array_byval.cpp
==============================================================================
--- trunk/libs/foreach/test/array_byval.cpp (original)
+++ trunk/libs/foreach/test/array_byval.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -33,7 +33,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::false_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_array);
-
+ (void)p;
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n(my_array, "\1\2\3\4\5"));
 

Modified: trunk/libs/foreach/test/array_byval_r.cpp
==============================================================================
--- trunk/libs/foreach/test/array_byval_r.cpp (original)
+++ trunk/libs/foreach/test/array_byval_r.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -33,6 +33,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::false_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_array);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n_r(my_array, "\5\4\3\2\1"));

Modified: trunk/libs/foreach/test/cstr_byval.cpp
==============================================================================
--- trunk/libs/foreach/test/cstr_byval.cpp (original)
+++ trunk/libs/foreach/test/cstr_byval.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -34,6 +34,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::true_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_ntcs);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n(my_ntcs, "\1\2\3\4\5"));

Modified: trunk/libs/foreach/test/cstr_byval_r.cpp
==============================================================================
--- trunk/libs/foreach/test/cstr_byval_r.cpp (original)
+++ trunk/libs/foreach/test/cstr_byval_r.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -34,6 +34,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::true_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_ntcs);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n_r(my_ntcs, "\5\4\3\2\1"));

Modified: trunk/libs/foreach/test/pair_byval.cpp
==============================================================================
--- trunk/libs/foreach/test/pair_byval.cpp (original)
+++ trunk/libs/foreach/test/pair_byval.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -34,6 +34,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::true_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_pair);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n(my_pair, "\1\2\3\4\5"));

Modified: trunk/libs/foreach/test/pair_byval_r.cpp
==============================================================================
--- trunk/libs/foreach/test/pair_byval_r.cpp (original)
+++ trunk/libs/foreach/test/pair_byval_r.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -34,6 +34,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::true_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_pair);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n_r(my_pair, "\5\4\3\2\1"));

Modified: trunk/libs/foreach/test/stl_byval.cpp
==============================================================================
--- trunk/libs/foreach/test/stl_byval.cpp (original)
+++ trunk/libs/foreach/test/stl_byval.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -49,6 +49,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::false_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_list);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n(my_list, "\1\2\3\4\5"));

Modified: trunk/libs/foreach/test/stl_byval_r.cpp
==============================================================================
--- trunk/libs/foreach/test/stl_byval_r.cpp (original)
+++ trunk/libs/foreach/test/stl_byval_r.cpp 2009-11-28 05:26:26 EST (Sat, 28 Nov 2009)
@@ -49,6 +49,7 @@
 int test_main( int, char*[] )
 {
     boost::mpl::false_ *p = BOOST_FOREACH_IS_LIGHTWEIGHT_PROXY(my_list);
+ (void)p;
 
     // non-const containers by value
     BOOST_CHECK(sequence_equal_byval_n_r(my_list, "\5\4\3\2\1"));


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