Stop leaking all ScPostIt instances.
[LibreOffice.git] / external / boost / boost_1_44_0-clang-warnings.patch
blob177df0216c6e7656b1fb97410b1efef6500c0123
1 --- misc/boost_1_44_0/boost/math/tools/fraction.hpp
2 +++ misc/build/boost_1_44_0/boost/math/tools/fraction.hpp
3 @@ -33,7 +33,7 @@
4 typedef typename Gen::result_type result_type;
5 typedef typename Gen::result_type value_type;
7 - static result_type a(const value_type& v)
8 + static result_type a(const value_type&)
10 return 1;
12 --- misc/boost_1_44_0/boost/random/lagged_fibonacci.hpp
13 +++ misc/build/boost_1_44_0/boost/random/lagged_fibonacci.hpp
14 @@ -16,6 +16,12 @@
15 #ifndef BOOST_RANDOM_LAGGED_FIBONACCI_HPP
16 #define BOOST_RANDOM_LAGGED_FIBONACCI_HPP
18 +#include <config_global.h>
19 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
20 +# pragma GCC diagnostic push
21 +# pragma GCC diagnostic ignored "-Wshadow"
22 +#endif
24 #include <istream>
25 #include <iosfwd>
26 #include <algorithm> // std::max
27 @@ -537,4 +537,8 @@
29 } // namespace boost
31 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
32 +# pragma GCC diagnostic pop
33 +#endif
35 #endif // BOOST_RANDOM_LAGGED_FIBONACCI_HPP
36 --- misc/boost_1_44_0/boost/random/shuffle_output.hpp
37 +++ misc/build/boost_1_44_0/boost/random/shuffle_output.hpp
38 @@ -16,6 +16,12 @@
39 #ifndef BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
40 #define BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
42 +#include <config_global.h>
43 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
44 +# pragma GCC diagnostic push
45 +# pragma GCC diagnostic ignored "-Wshadow"
46 +#endif
48 #include <boost/random/shuffle_order.hpp>
50 namespace boost {
51 @@ -52,4 +52,8 @@
55 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
56 +# pragma GCC diagnostic pop
57 +#endif
59 #endif // BOOST_RANDOM_SHUFFLE_OUTPUT_HPP
60 --- misc/boost_1_44_0/boost/random/subtract_with_carry.hpp
61 +++ misc/build/boost_1_44_0/boost/random/subtract_with_carry.hpp
62 @@ -16,6 +16,12 @@
63 #ifndef BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
64 #define BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP
66 +#include <config_global.h>
67 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
68 +# pragma GCC diagnostic push
69 +# pragma GCC diagnostic ignored "-Wshadow"
70 +#endif
72 #include <boost/config/no_tr1/cmath.hpp> // std::pow
73 #include <iostream>
74 #include <algorithm> // std::equal
75 @@ -614,4 +614,8 @@
76 } // namespace random
77 } // namespace boost
79 +#if defined(__GNUC__) && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE
80 +# pragma GCC diagnostic pop
81 +#endif
83 #endif // BOOST_RANDOM_SUBTRACT_WITH_CARRY_HPP