Bump version to 4.1-6
[LibreOffice.git] / boost / boost_1_44_0-clang-warnings.patch
blobd5772057970e6832dc534bc437f1fdefa55c3c56
1 --- misc/boost_1_44_0/boost/algorithm/string/detail/find_format_store.hpp 2010-07-10 22:29:03.000000000 +0200
2 +++ misc/build/boost_1_44_0/boost/algorithm/string/detail/find_format_store.hpp 2012-06-06 23:13:26.000000000 +0200
3 @@ -71,7 +71,7 @@
4 };
6 template<typename InputT, typename FindResultT>
7 - bool check_find_result(InputT& Input, FindResultT& FindResult)
8 + bool check_find_result(InputT&, FindResultT& FindResult)
10 typedef BOOST_STRING_TYPENAME
11 range_const_iterator<InputT>::type input_iterator_type;
12 --- misc/boost_1_44_0/boost/concept_check.hpp
13 +++ misc/build/boost_1_44_0/boost/concept_check.hpp
14 @@ -136,7 +136,18 @@ namespace boost
16 BOOST_CONCEPT_USAGE(Assignable) {
17 #if !defined(_ITERATOR_) // back_insert_iterator broken for VC++ STL
18 +#if defined __clang__
19 +#if __has_warning("-Wself-assign-field")
20 +#pragma clang diagnostic push
21 +#pragma clang diagnostic ignored "-Wself-assign-field"
22 +#endif
23 +#endif
24 a = a; // require assignment operator
25 +#if defined __clang__
26 +#if __has_warning("-Wself-assign-field")
27 +#pragma clang diagnostic pop
28 +#endif
29 +#endif
30 #endif
31 const_constraints(a);
33 --- misc/boost_1_44_0/boost/date_time/dst_rules.hpp 2008-02-27 21:00:24.000000000 +0100
34 +++ misc/build/boost_1_44_0/boost/date_time/dst_rules.hpp 2012-06-06 23:11:03.000000000 +0200
35 @@ -371,7 +371,7 @@
36 return is_not_in_dst;
39 - static bool is_dst_boundary_day(date_type d)
40 + static bool is_dst_boundary_day(date_type)
42 return false;
44 --- misc/boost_1_44_0/boost/date_time/gregorian_calendar.ipp 2010-01-10 20:17:23.000000000 +0100
45 +++ misc/build/boost_1_44_0/boost/date_time/gregorian_calendar.ipp 2012-06-06 22:27:07.000000000 +0200
46 @@ -47,7 +47,7 @@
47 return week;
50 - if ((week == 53)) {
51 + if (week == 53) {
52 if((day==6) ||(day == 5 && is_leap_year(ymd.year))) {
53 return week; //under these circumstances week == 53.
54 } else {
55 --- misc/boost_1_44_0/boost/date_time/period_formatter.hpp 2008-02-27 21:00:24.000000000 +0100
56 +++ misc/build/boost_1_44_0/boost/date_time/period_formatter.hpp 2012-06-06 23:12:48.000000000 +0200
57 @@ -114,10 +114,10 @@
59 m_range_option = option;
61 - void delimiter_strings(const string_type& separator,
62 - const string_type& start_delim,
63 - const string_type& open_end_delim,
64 - const string_type& closed_end_delim)
65 + void delimiter_strings(const string_type&,
66 + const string_type&,
67 + const string_type&,
68 + const string_type&)
70 m_period_separator;
71 m_period_start_delimeter;
72 --- misc/boost_1_44_0/boost/token_functions.hpp 2010-06-12 14:06:28.000000000 +0200
73 +++ misc/build/boost_1_44_0/boost/token_functions.hpp 2012-06-06 23:12:27.000000000 +0200
74 @@ -285,7 +285,7 @@
75 template <>
76 struct assign_or_plus_equal<std::input_iterator_tag> {
77 template<class Iterator, class Token>
78 - static void assign(Iterator b, Iterator e, Token &t) { }
79 + static void assign(Iterator, Iterator, Token &) { }
80 template<class Token, class Value>
81 static void plus_equal(Token &t, const Value &v) {
82 t += v;
83 --- misc/boost_1_44_0/boost/random/lagged_fibonacci.hpp
84 +++ misc/build/boost_1_44_0/boost/random/lagged_fibonacci.hpp
85 @@ -16,6 +16,10 @@
86 #ifndef BOOST_RANDOM_LAGGED_FIBONACCI_HPP
87 #define BOOST_RANDOM_LAGGED_FIBONACCI_HPP
89 +#if defined __GNUC__
90 +#pragma GCC system_header
91 +#endif
93 #include <boost/config/no_tr1/cmath.hpp>
94 #include <iostream>
95 #include <algorithm> // std::max
96 --- misc/boost_1_44_0/boost/random/shuffle_output.hpp
97 +++ misc/build/boost_1_44_0/boost/random/shuffle_output.hpp
98 @@ -16,6 +16,10 @@
99 #ifndef BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
100 #define BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
102 +#if defined __GNUC__
103 +#pragma GCC system_header
104 +#endif
106 #include <iostream>
107 #include <algorithm> // std::copy
108 #include <cassert>
109 --- misc/boost_1_44_0/boost/random/subtract_with_carry.hpp
110 +++ misc/build/boost_1_44_0/boost/random/subtract_with_carry.hpp
111 @@ -16,6 +16,10 @@
112 #ifndef BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
113 #define BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
115 +#if defined __GNUC__
116 +#pragma GCC system_header
117 +#endif
119 #include <boost/config/no_tr1/cmath.hpp>
120 #include <iostream>
121 #include <algorithm> // std::equal
122 --- misc/boost_1_44_0/boost/uuid/name_generator.hpp
123 +++ misc/build/boost_1_44_0/boost/uuid/name_generator.hpp
124 @@ -72,10 +72,10 @@
126 for (size_t i=0; i<count; i++) {
127 uint32_t c = characters[i];
128 - sha.process_byte( (c >> 0) && 0xFF );
129 - sha.process_byte( (c >> 8) && 0xFF );
130 - sha.process_byte( (c >> 16) && 0xFF );
131 - sha.process_byte( (c >> 24) && 0xFF );
132 + sha.process_byte( (c >> 0) & 0xFF );
133 + sha.process_byte( (c >> 8) & 0xFF );
134 + sha.process_byte( (c >> 16) & 0xFF );
135 + sha.process_byte( (c >> 24) & 0xFF );
139 --- misc/boost_1_44_0/boost/random/discard_block.hpp
140 +++ misc/build/boost_1_44_0/boost/random/discard_block.hpp
141 @@ -76,7 +76,7 @@
143 result_type min BOOST_PREVENT_MACRO_SUBSTITUTION () const { return (_rng.min)(); }
144 result_type max BOOST_PREVENT_MACRO_SUBSTITUTION () const { return (_rng.max)(); }
145 - static bool validation(result_type x) { return true; } // dummy
146 + static bool validation(result_type) { return true; } // dummy
148 #ifndef BOOST_NO_OPERATORS_IN_NAMESPACE