summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-05 04:22:32 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2011-02-05 04:22:32 +0100
commitedbb520d6b4d3743eab03cd8420e97f794926e29 (patch)
tree702369f8643014f3e60d9cd37d650dc4db0bc494 /boost
parent85072fc85d2084cdb52e595a58751d58feda29b2 (diff)
some more warnings gone
Diffstat (limited to 'boost')
-rw-r--r--boost/boost.4713.warnings.patch85
-rw-r--r--boost/makefile.mk3
2 files changed, 85 insertions, 3 deletions
diff --git a/boost/boost.4713.warnings.patch b/boost/boost.4713.warnings.patch
index ce02d66f953f..0dc8494649e6 100644
--- a/boost/boost.4713.warnings.patch
+++ b/boost/boost.4713.warnings.patch
@@ -389,6 +389,17 @@
#if defined(BOOST_UNORDERED_STD_FORWARD)
+@@ -135,8 +135,8 @@
+ if(this->size_ != other.size_) return false;
+ if(!this->size_) return true;
+
+- bucket_ptr end = this->get_bucket(this->bucket_count_);
+- for(bucket_ptr i = this->cached_begin_bucket_; i != end; ++i)
++ bucket_ptr end_ = this->get_bucket(this->bucket_count_);
++ for(bucket_ptr i = this->cached_begin_bucket_; i != end_; ++i)
+ {
+ node_ptr it1 = i->next_;
+ while(BOOST_UNORDERED_BORLAND_BOOL(it1))
@@ -159,13 +159,13 @@
template <class T>
inline BOOST_DEDUCED_TYPENAME hash_unique_table<T>::node_ptr
@@ -551,3 +562,77 @@
}
} while(++i != j);
}
+--- misc/boost_1_44_0/boost/unordered/detail/equivalent.hpp 2010-06-09 01:23:43.000000000 +0200
++++ misc/build/boost_1_44_0/boost/unordered/detail/equivalent.hpp 2011-02-05 04:15:47.000000000 +0100
+@@ -57,7 +57,7 @@
+ bool equals(hash_equivalent_table const&) const;
+
+ inline node_ptr add_node(node_constructor& a,
+- bucket_ptr bucket, node_ptr pos);
++ bucket_ptr bucket_, node_ptr pos);
+
+ #if defined(BOOST_UNORDERED_STD_FORWARD)
+
+@@ -117,8 +117,8 @@
+ if(this->size_ != other.size_) return false;
+ if(!this->size_) return true;
+
+- bucket_ptr end = this->get_bucket(this->bucket_count_);
+- for(bucket_ptr i = this->cached_begin_bucket_; i != end; ++i)
++ bucket_ptr end_ = this->get_bucket(this->bucket_count_);
++ for(bucket_ptr i = this->cached_begin_bucket_; i != end_; ++i)
+ {
+ node_ptr it1 = i->next_;
+ while(BOOST_UNORDERED_BORLAND_BOOL(it1))
+@@ -149,16 +149,16 @@
+ template <class T>
+ inline BOOST_DEDUCED_TYPENAME hash_equivalent_table<T>::node_ptr
+ hash_equivalent_table<T>
+- ::add_node(node_constructor& a, bucket_ptr bucket, node_ptr pos)
++ ::add_node(node_constructor& a, bucket_ptr bucket_, node_ptr pos)
+ {
+ node_ptr n = a.release();
+ if(BOOST_UNORDERED_BORLAND_BOOL(pos)) {
+ node::add_after_node(n, pos);
+ }
+ else {
+- node::add_to_bucket(n, *bucket);
+- if(bucket < this->cached_begin_bucket_)
+- this->cached_begin_bucket_ = bucket;
++ node::add_to_bucket(n, *bucket_);
++ if(bucket_ < this->cached_begin_bucket_)
++ this->cached_begin_bucket_ = bucket_;
+ }
+ ++this->size_;
+ return n;
+@@ -179,15 +179,15 @@
+ return this->emplace_empty_impl_with_node(a, 1);
+ }
+ else {
+- bucket_ptr bucket = this->bucket_ptr_from_hash(hash_value);
+- node_ptr position = this->find_iterator(bucket, k);
++ bucket_ptr bucket_ = this->bucket_ptr_from_hash(hash_value);
++ node_ptr position = this->find_iterator(bucket_, k);
+
+ // reserve has basic exception safety if the hash function
+ // throws, strong otherwise.
+ if(this->reserve_for_insert(this->size_ + 1))
+- bucket = this->bucket_ptr_from_hash(hash_value);
++ bucket_ = this->bucket_ptr_from_hash(hash_value);
+
+- return iterator_base(bucket, add_node(a, bucket, position));
++ return iterator_base(bucket_, add_node(a, bucket_, position));
+ }
+ }
+
+@@ -196,8 +196,8 @@
+ ::emplace_impl_no_rehash(node_constructor& a)
+ {
+ key_type const& k = this->get_key(a.value());
+- bucket_ptr bucket = this->get_bucket(this->bucket_index(k));
+- add_node(a, bucket, this->find_iterator(bucket, k));
++ bucket_ptr bucket_ = this->get_bucket(this->bucket_index(k));
++ add_node(a, bucket_, this->find_iterator(bucket_, k));
+ }
+
+ #if defined(BOOST_UNORDERED_STD_FORWARD)
diff --git a/boost/makefile.mk b/boost/makefile.mk
index 2d25dc3ce81b..b9912d2ac3a2 100644
--- a/boost/makefile.mk
+++ b/boost/makefile.mk
@@ -51,9 +51,6 @@ all:
TARFILE_NAME=boost_1_44_0
TARFILE_MD5=f02578f5218f217a9f20e9c30e119c6a
PATCH_FILES=$(TARFILE_NAME).patch
-# See https://svn.boost.org/trac/boost/ticket/3780
-#PATCH_FILES+=aliasing.patch
-
#https://svn.boost.org/trac/boost/ticket/4713
PATCH_FILES+=boost.4713.warnings.patch