Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / boost / boost_1_44_0-clang-warnings.patch
blobf48910e910748006c8f40cb44f7603213a30b809
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/uuid/name_generator.hpp
84 +++ misc/build/boost_1_44_0/boost/uuid/name_generator.hpp
85 @@ -72,10 +72,10 @@
87 for (size_t i=0; i<count; i++) {
88 uint32_t c = characters[i];
89 - sha.process_byte( (c >> 0) && 0xFF );
90 - sha.process_byte( (c >> 8) && 0xFF );
91 - sha.process_byte( (c >> 16) && 0xFF );
92 - sha.process_byte( (c >> 24) && 0xFF );
93 + sha.process_byte( (c >> 0) & 0xFF );
94 + sha.process_byte( (c >> 8) & 0xFF );
95 + sha.process_byte( (c >> 16) & 0xFF );
96 + sha.process_byte( (c >> 24) & 0xFF );