Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85698 - in trunk: boost/range libs/range/test libs/range/test/adaptor_test libs/range/test/algorithm_test
From: neil_at_[hidden]
Date: 2013-09-16 07:21:37


Author: neilgroves
Date: 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013)
New Revision: 85698
URL: http://svn.boost.org/trac/boost/changeset/85698

Log:
[boost][range] - removed warnings found building with clang 3.2.

Text files modified:
   trunk/boost/range/size_type.hpp | 4 ++--
   trunk/libs/range/test/adaptor_test/strided.cpp | 1 +
   trunk/libs/range/test/algorithm_test/copy.cpp | 2 +-
   trunk/libs/range/test/algorithm_test/stable_partition.cpp | 2 ++
   trunk/libs/range/test/algorithm_test/transform.cpp | 4 ++++
   trunk/libs/range/test/compat2.cpp | 2 ++
   trunk/libs/range/test/extension_size.cpp | 4 ++--
   7 files changed, 14 insertions(+), 5 deletions(-)

Modified: trunk/boost/range/size_type.hpp
==============================================================================
--- trunk/boost/range/size_type.hpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/boost/range/size_type.hpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -76,14 +76,14 @@
     struct range_size :
         detail::range_size<T>
     {
- BOOST_RANGE_CONCEPT_ASSERT((boost::SinglePassRangeConcept<T>));
+ BOOST_RANGE_CONCEPT_ASSERT((boost::SinglePassRangeConcept<T>))
     };
 
     template< class T >
     struct range_size<const T >
         : detail::range_size<T>
     {
- BOOST_RANGE_CONCEPT_ASSERT((boost::SinglePassRangeConcept<T>));
+ BOOST_RANGE_CONCEPT_ASSERT((boost::SinglePassRangeConcept<T>))
     };
 
 } // namespace boost

Modified: trunk/libs/range/test/adaptor_test/strided.cpp
==============================================================================
--- trunk/libs/range/test/adaptor_test/strided.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/adaptor_test/strided.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -132,6 +132,7 @@
 
             typedef boost::strided_range<Container> strided_range_t;
             strided_range_t rng( boost::adaptors::stride(c, 0) );
+ boost::ignore_unused_variable_warning(rng);
             typedef BOOST_DEDUCED_TYPENAME boost::range_iterator<strided_range_t>::type iter_t;
 
             iter_t first(boost::begin(c), boost::begin(c), boost::end(c), 0);

Modified: trunk/libs/range/test/algorithm_test/copy.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_test/copy.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/algorithm_test/copy.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -43,7 +43,7 @@
                 source.begin(), source.end()
                 );
 
- it == boost::copy(boost::make_iterator_range(source), target.begin());
+ it = boost::copy(boost::make_iterator_range(source), target.begin());
             
             BOOST_CHECK( it == target.end() );
 

Modified: trunk/libs/range/test/algorithm_test/stable_partition.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_test/stable_partition.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/algorithm_test/stable_partition.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -71,6 +71,8 @@
 
                 result_t result2 = boost::stable_partition<return_type>(
                                     boost::make_iterator_range(cont2), policy.pred());
+
+ boost::ignore_unused_variable_warning(result2);
 
                 BOOST_CHECK_EQUAL_COLLECTIONS( cont2.begin(), cont2.end(),
                                                cont.begin(), cont.end() );

Modified: trunk/libs/range/test/algorithm_test/transform.cpp
==============================================================================
--- trunk/libs/range/test/algorithm_test/transform.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/algorithm_test/transform.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -41,6 +41,8 @@
 
             iterator_t reference_it
                 = std::transform(cont.begin(), cont.end(), reference.begin(), fn);
+
+ boost::ignore_unused_variable_warning(reference_it);
 
             iterator_t test_it
                 = boost::transform(cont, target.begin(), fn);
@@ -101,6 +103,8 @@
             iterator_t reference_it
                 = std::transform(cont1.begin(), cont1.end(),
                                  cont2.begin(), reference.begin(), fn);
+
+ boost::ignore_unused_variable_warning(reference_it);
 
             iterator_t test_it
                 = boost::transform(cont1, cont2, target.begin(), fn);

Modified: trunk/libs/range/test/compat2.cpp
==============================================================================
--- trunk/libs/range/test/compat2.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/compat2.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -10,6 +10,7 @@
 
 #include <boost/static_assert.hpp>
 #include <boost/type_traits.hpp>
+#include <boost/concept_check.hpp>
 #include <boost/config.hpp>
 
 enum Container {};
@@ -51,6 +52,7 @@
 {
     std::vector<int> v;
     iterator_of< std::vector<int> >::type i = v.begin();
+ boost::ignore_unused_variable_warning(i);
 }
 
 #include <boost/test/included/unit_test.hpp>

Modified: trunk/libs/range/test/extension_size.cpp
==============================================================================
--- trunk/libs/range/test/extension_size.cpp Mon Sep 16 06:10:12 2013 (r85697)
+++ trunk/libs/range/test/extension_size.cpp 2013-09-16 07:21:36 EDT (Mon, 16 Sep 2013) (r85698)
@@ -184,8 +184,8 @@
 
 BOOST_STATIC_ASSERT((
     boost::is_same<
- typename boost::make_unsigned<std::ptrdiff_t>::type,
- typename boost::range_size<
+ boost::make_unsigned<std::ptrdiff_t>::type,
+ boost::range_size<
                     boost_range_extension_size_test::FooWithoutSize>::type
>::value
 ));


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