Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75599 - in trunk: boost/unordered/detail libs/unordered/test/unordered
From: dnljms_at_[hidden]
Date: 2011-11-21 18:21:12


Author: danieljames
Date: 2011-11-21 18:21:11 EST (Mon, 21 Nov 2011)
New Revision: 75599
URL: http://svn.boost.org/trac/boost/changeset/75599

Log:
Unordered: Fix gcc warning and re-enable warnings-as-errors for gcc.
Text files modified:
   trunk/boost/unordered/detail/table.hpp | 6 +++---
   trunk/libs/unordered/test/unordered/Jamfile.v2 | 4 ++--
   2 files changed, 5 insertions(+), 5 deletions(-)

Modified: trunk/boost/unordered/detail/table.hpp
==============================================================================
--- trunk/boost/unordered/detail/table.hpp (original)
+++ trunk/boost/unordered/detail/table.hpp 2011-11-21 18:21:11 EST (Mon, 21 Nov 2011)
@@ -174,13 +174,13 @@
         }
 
         iterator& operator++() {
- node_ = node_ = static_cast<node_pointer>(node_->next_);
+ node_ = static_cast<node_pointer>(node_->next_);
             return *this;
         }
 
         iterator operator++(int) {
             iterator tmp(node_);
- node_ = node_ = static_cast<node_pointer>(node_->next_);
+ node_ = static_cast<node_pointer>(node_->next_);
             return tmp;
         }
 
@@ -242,7 +242,7 @@
 
         c_iterator operator++(int) {
             c_iterator tmp(node_);
- node_ = node_ = static_cast<node_pointer>(node_->next_);
+ node_ = static_cast<node_pointer>(node_->next_);
             return tmp;
         }
 

Modified: trunk/libs/unordered/test/unordered/Jamfile.v2
==============================================================================
--- trunk/libs/unordered/test/unordered/Jamfile.v2 (original)
+++ trunk/libs/unordered/test/unordered/Jamfile.v2 2011-11-21 18:21:11 EST (Mon, 21 Nov 2011)
@@ -14,8 +14,8 @@
         #<toolset>gcc:<define>_GLIBCXX_DEBUG
         #<toolset>darwin:<define>_GLIBCXX_DEBUG
         #<toolset>msvc:<warnings-as-errors>on
- #<toolset>gcc:<warnings-as-errors>on
- #<toolset>darwin:<warnings-as-errors>on
+ <toolset>gcc:<warnings-as-errors>on
+ <toolset>darwin:<warnings-as-errors>on
     ;
 
 test-suite unordered


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