summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-04-13 01:02:06 +0200
committerMichael Stahl <mstahl@redhat.com>2014-04-14 17:42:24 +0200
commitfc690336a0c7cb3e3a3c3dbbf2c9342d3e17095b (patch)
tree506a83ce671445f4c4faf6a0ed199e7bb4466f04 /external
parent8f403051968298fbabd61de82fbb6a77762c83cc (diff)
boost: split up the totally misleading boost.4713.warnings.patch
Change-Id: I19ba507541a0bacc77ac9b77c64f8809273f9d4d
Diffstat (limited to 'external')
-rw-r--r--external/boost/UnpackedTarball_boost.mk9
-rw-r--r--external/boost/boost.date_time.Wshadow.warnings.patch19
-rw-r--r--external/boost/boost.ptr_container.Wextra.warnings.patch12
-rw-r--r--external/boost/boost.ptr_container.Wignored-qualifiers.warnings.patch11
-rw-r--r--external/boost/boost.ptr_container.Wshadow.warnings.patch (renamed from external/boost/boost.4713.warnings.patch)135
-rw-r--r--external/boost/boost.ptr_container.Wunused-parameter.warnings.patch23
-rw-r--r--external/boost/boost.spirit.Wshadow.warnings.patch40
7 files changed, 129 insertions, 120 deletions
diff --git a/external/boost/UnpackedTarball_boost.mk b/external/boost/UnpackedTarball_boost.mk
index b3ffa7e24318..44efd984be2a 100644
--- a/external/boost/UnpackedTarball_boost.mk
+++ b/external/boost/UnpackedTarball_boost.mk
@@ -10,8 +10,6 @@
boost_patches :=
#https://svn.boost.org/trac/boost/ticket/3780
boost_patches += boost.3780.aliasing.patch
-#https://svn.boost.org/trac/boost/ticket/4713
-boost_patches += boost.4713.warnings.patch
#http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47679
boost_patches += boost.gcc47679.patch
#https://svn.boost.org/trac/boost/ticket/6369
@@ -24,6 +22,13 @@ boost_patches += boost.4100.warnings.patch
boost_patches += boost.4510.warnings.patch
#https://svn.boost.org/trac/boost/ticket/6142
boost_patches += boost.6142.warnings.patch.1
+
+boost_patches += boost.date_time.Wshadow.warnings.patch
+boost_patches += boost.ptr_container.Wshadow.warnings.patch
+boost_patches += boost.ptr_container.Wignored-qualifiers.warnings.patch
+boost_patches += boost.ptr_container.Wextra.warnings.patch
+boost_patches += boost.ptr_container.Wunused-parameter.warnings.patch
+boost_patches += boost.spirit.Wshadow.warnings.patch
boost_patches += boost.libcdr.warnings.patch.1
# Help static analysis tools (see SAL_UNUSED_PARAMETER in sal/types.h):
diff --git a/external/boost/boost.date_time.Wshadow.warnings.patch b/external/boost/boost.date_time.Wshadow.warnings.patch
new file mode 100644
index 000000000000..578159a2998a
--- /dev/null
+++ b/external/boost/boost.date_time.Wshadow.warnings.patch
@@ -0,0 +1,19 @@
+--- misc/boost_1_44_0/boost/date_time/date_names_put.hpp 2008-02-27 21:00:24.000000000 +0100
++++ misc/build/boost_1_44_0/boost/date_time/date_names_put.hpp 2011-10-05 16:58:58.413575307 +0200
+@@ -218,14 +218,14 @@
+ const charT* const weekday_long_names[],
+ charT separator_char = '-',
+ ymd_order_spec order_spec = ymd_order_iso,
+- month_format_spec month_format = month_as_short_string) :
++ month_format_spec month_format_ = month_as_short_string) :
+ month_short_names_(month_short_names),
+ month_long_names_(month_long_names),
+ special_value_names_(special_value_names),
+ weekday_short_names_(weekday_short_names),
+ weekday_long_names_(weekday_long_names),
+ order_spec_(order_spec),
+- month_format_spec_(month_format)
++ month_format_spec_(month_format_)
+ {
+ separator_char_[0] = separator_char;
+ separator_char_[1] = '\0';
diff --git a/external/boost/boost.ptr_container.Wextra.warnings.patch b/external/boost/boost.ptr_container.Wextra.warnings.patch
new file mode 100644
index 000000000000..674ab9300448
--- /dev/null
+++ b/external/boost/boost.ptr_container.Wextra.warnings.patch
@@ -0,0 +1,12 @@
+base class ‘class boost::ptr_container_detail::ptr_map_adapter_base<chart::VDataSequence, std::__debug::map<rtl::OUString, void*, std::less<rtl::OUString>, std::allocator<std::pair<const rtl::OUString, void*> > >, boost::heap_clone_allocator, true>’ should be explicitly initialized in the copy constructor [-Werror=extra]
+
+--- misc/boost_1_44_0/boost/ptr_container/ptr_map_adapter.hpp 2008-06-24 22:37:35.000000000 +0200
++++ misc/build/boost_1_44_0/boost/ptr_container/ptr_map_adapter.hpp 2011-02-04 16:39:19.000000000 +0100
+@@ -477,6 +477,7 @@
+ }
+
+ ptr_map_adapter( const ptr_map_adapter& r )
++ : base_type()
+ {
+ map_basic_clone_and_insert( r.begin(), r.end() );
+ }
diff --git a/external/boost/boost.ptr_container.Wignored-qualifiers.warnings.patch b/external/boost/boost.ptr_container.Wignored-qualifiers.warnings.patch
new file mode 100644
index 000000000000..89d6ee411537
--- /dev/null
+++ b/external/boost/boost.ptr_container.Wignored-qualifiers.warnings.patch
@@ -0,0 +1,11 @@
+--- misc/boost_1_44_0/boost/ptr_container/detail/map_iterator.hpp 2008-06-24 22:37:35.000000000 +0200
++++ misc/build/boost_1_44_0/boost/ptr_container/detail/map_iterator.hpp 2011-02-04 16:39:19.000000000 +0100
+@@ -49,7 +49,7 @@
+ : first(rp->first), second(rp->second)
+ { }
+
+- const ref_pair* const operator->() const
++ const ref_pair* operator->() const
+ {
+ return this;
+ }
diff --git a/external/boost/boost.4713.warnings.patch b/external/boost/boost.ptr_container.Wshadow.warnings.patch
index 7a5726e032fd..c5c1e32178f4 100644
--- a/external/boost/boost.4713.warnings.patch
+++ b/external/boost/boost.ptr_container.Wshadow.warnings.patch
@@ -1,43 +1,3 @@
---- misc/boost_1_44_0/boost/date_time/date_names_put.hpp 2008-02-27 21:00:24.000000000 +0100
-+++ misc/build/boost_1_44_0/boost/date_time/date_names_put.hpp 2011-10-05 16:58:58.413575307 +0200
-@@ -218,14 +218,14 @@
- const charT* const weekday_long_names[],
- charT separator_char = '-',
- ymd_order_spec order_spec = ymd_order_iso,
-- month_format_spec month_format = month_as_short_string) :
-+ month_format_spec month_format_ = month_as_short_string) :
- month_short_names_(month_short_names),
- month_long_names_(month_long_names),
- special_value_names_(special_value_names),
- weekday_short_names_(weekday_short_names),
- weekday_long_names_(weekday_long_names),
- order_spec_(order_spec),
-- month_format_spec_(month_format)
-+ month_format_spec_(month_format_)
- {
- separator_char_[0] = separator_char;
- separator_char_[1] = '\0';
---- misc/boost_1_44_0/boost/ptr_container/detail/map_iterator.hpp 2008-06-24 22:37:35.000000000 +0200
-+++ misc/build/boost_1_44_0/boost/ptr_container/detail/map_iterator.hpp 2011-02-04 16:39:19.000000000 +0100
-@@ -49,7 +49,7 @@
- : first(rp->first), second(rp->second)
- { }
-
-- const ref_pair* const operator->() const
-+ const ref_pair* operator->() const
- {
- return this;
- }
---- misc/boost_1_44_0/boost/ptr_container/ptr_map_adapter.hpp 2008-06-24 22:37:35.000000000 +0200
-+++ misc/build/boost_1_44_0/boost/ptr_container/ptr_map_adapter.hpp 2011-02-04 16:39:19.000000000 +0100
-@@ -477,6 +477,7 @@
- }
-
- ptr_map_adapter( const ptr_map_adapter& r )
-+ : base_type()
- {
- map_basic_clone_and_insert( r.begin(), r.end() );
- }
--- misc/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2009-11-01 12:07:12.000000000 +0100
+++ misc/build/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2011-02-04 16:39:19.000000000 +0100
@@ -476,19 +476,19 @@
@@ -45,7 +5,7 @@
void transfer( iterator before, value_type* from,
- size_type size, bool delete_from = true ) // strong
-+ size_type size_, bool delete_from = true ) // strong
++ size_type size_, bool delete_from = true ) // strong
{
BOOST_ASSERT( from != 0 );
if( delete_from )
@@ -64,34 +24,6 @@
}
}
-@@ -671,6 +671,7 @@
- void range_check_impl( iterator first, iterator last,
- std::random_access_iterator_tag )
- {
-+ (void)first; (void)last;
- BOOST_ASSERT( first <= last && "out of range unique()/erase_if()" );
- BOOST_ASSERT( this->begin() <= first && "out of range unique()/erase_if()" );
- BOOST_ASSERT( last <= this->end() && "out of range unique()/erase_if)(" );
---- misc/boost_1_44_0/boost/spirit/home/classic/symbols/symbols.hpp 2008-06-22 17:05:38.000000000 +0200
-+++ misc/build/boost_1_44_0/boost/spirit/home/classic/symbols/symbols.hpp 2011-02-04 16:39:19.000000000 +0100
-@@ -102,13 +102,13 @@
- {
- typedef typename ScannerT::iterator_t iterator_t;
- iterator_t first = scan.first;
-- typename SetT::search_info result = SetT::find(scan);
-+ typename SetT::search_info result_ = SetT::find(scan);
-
-- if (result.data)
-+ if (result_.data)
- return scan.
- create_match(
-- result.length,
-- symbol_ref_t(*result.data),
-+ result_.length,
-+ symbol_ref_t(*result_.data),
- first,
- scan.first);
- else
--- misc/boost_1_44_0/boost/ptr_container/exception.hpp 2011-02-05 09:42:56.074932485 +0000
+++ misc/build/boost_1_44_0/boost/ptr_container/exception.hpp 2011-02-05 09:43:00.350931536 +0000
@@ -24,7 +24,7 @@
@@ -119,24 +51,13 @@
private:
template< class ForwardIterator >
- ForwardIterator advance( ForwardIterator begin, size_type n )
-+ ForwardIterator advance( ForwardIterator begin_, size_type n )
++ ForwardIterator advance( ForwardIterator begin_, size_type n )
{
- ForwardIterator iter = begin;
+ ForwardIterator iter = begin_;
std::advance( iter, n );
return iter;
}
---- misc/boost_1_44_0/boost/ptr_container/detail/static_move_ptr.hpp 2011-02-05 09:55:44.846931338 +0000
-+++ misc/build/boost_1_44_0/boost/ptr_container/detail/static_move_ptr.hpp 2011-02-05 09:56:42.760931701 +0000
-@@ -151,7 +151,7 @@
- deleter_const_reference get_deleter() const { return impl_.second(); }
- private:
- template<typename TT, typename DD>
-- void check(const static_move_ptr<TT, DD>& ptr)
-+ void check(const static_move_ptr<TT, DD>&)
- {
- typedef move_ptrs::is_smart_ptr_convertible<TT, T> convertible;
- BOOST_STATIC_ASSERT(convertible::value);
--- misc/boost_1_44_0/boost/ptr_container/detail/move.hpp 2011-02-05 10:01:21.156931884 +0000
+++ misc/build/boost_1_44_0/boost/ptr_container/detail/move.hpp 2011-02-05 10:01:14.160931007 +0000
@@ -20,7 +20,7 @@
@@ -148,26 +69,17 @@
Ptr& ptr() const { return ptr_; }
private:
Ptr& ptr_;
---- misc/boost_1_44_0/boost/spirit/home/classic/core/non_terminal/subrule.hpp 2011-02-08 09:24:50.817320629 +0000
-+++ misc/build/boost_1_44_0/boost/spirit/home/classic/core/non_terminal/subrule.hpp 2011-02-08 09:25:20.496639901 +0000
-@@ -210,7 +210,7 @@
- subrule_list<
- subrule_parser<ID2, DefT2, ContextT2>,
- nil_t> >
-- operator,(subrule_parser<ID2, DefT2, ContextT2> const& rhs) const
-+ operator,(subrule_parser<ID2, DefT2, ContextT2> const& rhs_) const
+--- misc/boost_1_44_0/boost/ptr_container/detail/static_move_ptr.hpp 2011-02-05 09:55:44.846931338 +0000
++++ misc/build/boost_1_44_0/boost/ptr_container/detail/static_move_ptr.hpp 2011-02-05 09:56:42.760931701 +0000
+@@ -151,7 +151,7 @@
+ deleter_const_reference get_deleter() const { return impl_.second(); }
+ private:
+ template<typename TT, typename DD>
+- void check(const static_move_ptr<TT, DD>& ptr)
++ void check(const static_move_ptr<TT, DD>&)
{
- return subrule_list<
- self_t,
-@@ -220,7 +220,7 @@
- *this,
- subrule_list<
- subrule_parser<ID2, DefT2, ContextT2>, nil_t>(
-- rhs, nil_t()));
-+ rhs_, nil_t()));
- }
-
- typename DefT::embed_t rhs;
+ typedef move_ptrs::is_smart_ptr_convertible<TT, T> convertible;
+ BOOST_STATIC_ASSERT(convertible::value);
--- misc/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2011-02-09 08:49:00.416529470 +0000
+++ misc/build/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2011-02-09 08:50:44.607653864 +0000
@@ -510,72 +510,72 @@
@@ -182,7 +94,7 @@
+ if( old_size > size_ )
{
- this->erase( boost::next( this->begin(), size ), this->end() );
-+ this->erase( boost::next( this->begin(), size_ ), this->end() );
++ this->erase( boost::next( this->begin(), size_ ), this->end() );
}
- else if( size > old_size )
+ else if( size_ > old_size )
@@ -205,7 +117,7 @@
+ if( old_size > size_ )
{
- this->erase( boost::next( this->begin(), size ), this->end() );
-+ this->erase( boost::next( this->begin(), size_ ), this->end() );
++ this->erase( boost::next( this->begin(), size_ ), this->end() );
}
- else if( size > old_size )
+ else if( size_ > old_size )
@@ -216,7 +128,7 @@
}
- BOOST_ASSERT( this->size() == size );
-+ BOOST_ASSERT( this->size() == size_ );
++ BOOST_ASSERT( this->size() == size_ );
}
- void rresize( size_type size ) // basic
@@ -228,7 +140,7 @@
{
this->erase( this->begin(),
- boost::next( this->begin(), old_size - size ) );
-+ boost::next( this->begin(), old_size - size_ ) );
++ boost::next( this->begin(), old_size - size_ ) );
}
- else if( size > old_size )
+ else if( size_ > old_size )
@@ -252,7 +164,7 @@
{
this->erase( this->begin(),
- boost::next( this->begin(), old_size - size ) );
-+ boost::next( this->begin(), old_size - size_ ) );
++ boost::next( this->begin(), old_size - size_ ) );
}
- else if( size > old_size )
+ else if( size_ > old_size )
@@ -267,16 +179,3 @@
}
public: // algorithms
---- misc/boost_1_44_0/boost/ptr_container/detail/reversible_ptr_container.hpp 2011-03-04 11:33:36.269274940 +0000
-+++ misc/build/boost_1_44_0/boost/ptr_container/detail/reversible_ptr_container.hpp 2011-03-04 11:33:36.269274940 +0000
-@@ -259,6 +259,10 @@
-
- static void enforce_null_policy( const Ty_* x, const char* msg )
- {
-+#ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
-+ (void)x;
-+ (void)msg;
-+#endif
- if( !allow_null )
- {
- BOOST_PTR_CONTAINER_THROW_EXCEPTION( 0 == x && "null not allowed",
diff --git a/external/boost/boost.ptr_container.Wunused-parameter.warnings.patch b/external/boost/boost.ptr_container.Wunused-parameter.warnings.patch
new file mode 100644
index 000000000000..280bc70690cf
--- /dev/null
+++ b/external/boost/boost.ptr_container.Wunused-parameter.warnings.patch
@@ -0,0 +1,23 @@
+--- misc/boost_1_44_0/boost/ptr_container/detail/reversible_ptr_container.hpp 2011-03-04 11:33:36.269274940 +0000
++++ misc/build/boost_1_44_0/boost/ptr_container/detail/reversible_ptr_container.hpp 2011-03-04 11:33:36.269274940 +0000
+@@ -259,6 +259,10 @@
+
+ static void enforce_null_policy( const Ty_* x, const char* msg )
+ {
++#ifdef BOOST_PTR_CONTAINER_NO_EXCEPTIONS
++ (void)x;
++ (void)msg;
++#endif
+ if( !allow_null )
+ {
+ BOOST_PTR_CONTAINER_THROW_EXCEPTION( 0 == x && "null not allowed",
+--- misc/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2009-11-01 12:07:12.000000000 +0100
++++ misc/build/boost_1_44_0/boost/ptr_container/ptr_sequence_adapter.hpp 2011-02-04 16:39:19.000000000 +0100
+@@ -671,6 +671,7 @@
+ void range_check_impl( iterator first, iterator last,
+ std::random_access_iterator_tag )
+ {
++ (void)first; (void)last;
+ BOOST_ASSERT( first <= last && "out of range unique()/erase_if()" );
+ BOOST_ASSERT( this->begin() <= first && "out of range unique()/erase_if()" );
+ BOOST_ASSERT( last <= this->end() && "out of range unique()/erase_if)(" );
diff --git a/external/boost/boost.spirit.Wshadow.warnings.patch b/external/boost/boost.spirit.Wshadow.warnings.patch
new file mode 100644
index 000000000000..2ac13b67059e
--- /dev/null
+++ b/external/boost/boost.spirit.Wshadow.warnings.patch
@@ -0,0 +1,40 @@
+--- misc/boost_1_44_0/boost/spirit/home/classic/symbols/symbols.hpp 2008-06-22 17:05:38.000000000 +0200
++++ misc/build/boost_1_44_0/boost/spirit/home/classic/symbols/symbols.hpp 2011-02-04 16:39:19.000000000 +0100
+@@ -102,13 +102,13 @@
+ {
+ typedef typename ScannerT::iterator_t iterator_t;
+ iterator_t first = scan.first;
+- typename SetT::search_info result = SetT::find(scan);
++ typename SetT::search_info result_ = SetT::find(scan);
+
+- if (result.data)
++ if (result_.data)
+ return scan.
+ create_match(
+- result.length,
+- symbol_ref_t(*result.data),
++ result_.length,
++ symbol_ref_t(*result_.data),
+ first,
+ scan.first);
+ else
+--- misc/boost_1_44_0/boost/spirit/home/classic/core/non_terminal/subrule.hpp 2011-02-08 09:24:50.817320629 +0000
++++ misc/build/boost_1_44_0/boost/spirit/home/classic/core/non_terminal/subrule.hpp 2011-02-08 09:25:20.496639901 +0000
+@@ -210,7 +210,7 @@
+ subrule_list<
+ subrule_parser<ID2, DefT2, ContextT2>,
+ nil_t> >
+- operator,(subrule_parser<ID2, DefT2, ContextT2> const& rhs) const
++ operator,(subrule_parser<ID2, DefT2, ContextT2> const& rhs_) const
+ {
+ return subrule_list<
+ self_t,
+@@ -220,7 +220,7 @@
+ *this,
+ subrule_list<
+ subrule_parser<ID2, DefT2, ContextT2>, nil_t>(
+- rhs, nil_t()));
++ rhs_, nil_t()));
+ }
+
+ typename DefT::embed_t rhs;