fixed, compiler warning. this comes from boost upstream (https://svn.boost.org/trac...
authorS. Davilla <davilla@4pi.com>
Sun, 9 Feb 2014 20:05:09 +0000 (15:05 -0500)
committerS. Davilla <davilla@4pi.com>
Sun, 9 Feb 2014 20:05:31 +0000 (15:05 -0500)
tools/depends/target/boost/Makefile
tools/depends/target/boost/fix-self-assignment-warnings.patch [new file with mode: 0644]

index e46d57c..f38482a 100644 (file)
@@ -24,6 +24,7 @@ $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE) $(DEPS)
 ifeq (arm, $(findstring arm, $(CPU)))
        cd $(PLATFORM); patch -p0 < ../fix_shared_ptr_multithread.patch
 endif
+       cd $(PLATFORM); patch -p1 < ../fix-self-assignment-warnings.patch
        cd $(PLATFORM); ./bootstrap.sh --prefix=$(PREFIX)
 
 .installed-$(PLATFORM): $(PLATFORM)
diff --git a/tools/depends/target/boost/fix-self-assignment-warnings.patch b/tools/depends/target/boost/fix-self-assignment-warnings.patch
new file mode 100644 (file)
index 0000000..647e01c
--- /dev/null
@@ -0,0 +1,61 @@
+--- a/boost/concept_check.hpp
++++ b/boost/concept_check.hpp
+@@ -136,20 +136,21 @@ namespace boost
+   {
+     BOOST_CONCEPT_USAGE(Assignable) {
+ #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
+-      a = a;             // require assignment operator
++      a = b;             // require assignment operator
+ #endif
+-      const_constraints(a);
++      const_constraints(b);
+     }
+    private:
+-    void const_constraints(const TT& b) {
++    void const_constraints(const TT& x) {
+ #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
+-      a = b;              // const required for argument to assignment
++      a = x;              // const required for argument to assignment
+ #else
+-      ignore_unused_variable_warning(b);
++      ignore_unused_variable_warning(x);
+ #endif
+     }
+    private:
+     TT a;
++    TT b;
+   };
+   
+@@ -180,22 +181,23 @@ namespace boost
+   BOOST_concept(SGIAssignable,(TT))
+   {
+     BOOST_CONCEPT_USAGE(SGIAssignable) {
+-      TT b(a);
++      TT c(a);
+ #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
+-      a = a;              // require assignment operator
++      a = b;              // require assignment operator
+ #endif
+-      const_constraints(a);
+-      ignore_unused_variable_warning(b);
++      const_constraints(b);
++      ignore_unused_variable_warning(c);
+     }
+    private:
+-    void const_constraints(const TT& b) {
+-      TT c(b);
++    void const_constraints(const TT& x) {
++      TT c(x);
+ #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
+-      a = b;              // const required for argument to assignment
++      a = x;              // const required for argument to assignment
+ #endif
+       ignore_unused_variable_warning(c);
+     }
+     TT a;
++    TT b;
+   };
+ #if (defined _MSC_VER)
+ # pragma warning( pop )
+