[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - 2 commits - bin/gen-boost-headers external/boost sw/inc sw/source

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 24 00:48:01 UTC 2019


 bin/gen-boost-headers                                                  |    1 
 external/boost/include/boost/algorithm/string.hpp                      |    1 
 external/boost/include/boost/algorithm/string/case_conv.hpp            |    1 
 external/boost/include/boost/algorithm/string/classification.hpp       |    1 
 external/boost/include/boost/algorithm/string/predicate.hpp            |    1 
 external/boost/include/boost/algorithm/string/split.hpp                |    1 
 external/boost/include/boost/any.hpp                                   |    1 
 external/boost/include/boost/archive/iterators/base64_from_binary.hpp  |    1 
 external/boost/include/boost/archive/iterators/binary_from_base64.hpp  |    1 
 external/boost/include/boost/archive/iterators/remove_whitespace.hpp   |    1 
 external/boost/include/boost/archive/iterators/transform_width.hpp     |    1 
 external/boost/include/boost/asio.hpp                                  |    1 
 external/boost/include/boost/assign.hpp                                |    1 
 external/boost/include/boost/bind.hpp                                  |    1 
 external/boost/include/boost/cast.hpp                                  |    1 
 external/boost/include/boost/circular_buffer.hpp                       |    1 
 external/boost/include/boost/config.hpp                                |    1 
 external/boost/include/boost/container/deque.hpp                       |    1 
 external/boost/include/boost/cstdint.hpp                               |    1 
 external/boost/include/boost/current_function.hpp                      |    1 
 external/boost/include/boost/date_time.hpp                             |    1 
 external/boost/include/boost/date_time/posix_time/posix_time.hpp       |    1 
 external/boost/include/boost/enable_shared_from_this.hpp               |    1 
 external/boost/include/boost/exception/diagnostic_information.hpp      |    1 
 external/boost/include/boost/filesystem.hpp                            |    1 
 external/boost/include/boost/filesystem/path.hpp                       |    1 
 external/boost/include/boost/foreach.hpp                               |    1 
 external/boost/include/boost/format.hpp                                |    1 
 external/boost/include/boost/function.hpp                              |    1 
 external/boost/include/boost/functional/hash.hpp                       |    1 
 external/boost/include/boost/fusion/adapted/std_pair.hpp               |    1 
 external/boost/include/boost/fusion/include/adapt_struct.hpp           |    1 
 external/boost/include/boost/intrusive/circular_list_algorithms.hpp    |    1 
 external/boost/include/boost/intrusive_ptr.hpp                         |    1 
 external/boost/include/boost/io/ios_state.hpp                          |    1 
 external/boost/include/boost/iostreams/device/file_descriptor.hpp      |    1 
 external/boost/include/boost/iostreams/filter/gzip.hpp                 |    1 
 external/boost/include/boost/iostreams/filtering_stream.hpp            |    1 
 external/boost/include/boost/iterator/iterator_facade.hpp              |    1 
 external/boost/include/boost/lexical_cast.hpp                          |    1 
 external/boost/include/boost/locale.hpp                                |    1 
 external/boost/include/boost/locale/gnu_gettext.hpp                    |    1 
 external/boost/include/boost/logic/tribool.hpp                         |    1 
 external/boost/include/boost/make_shared.hpp                           |    1 
 external/boost/include/boost/math/common_factor_rt.hpp                 |    1 
 external/boost/include/boost/math/constants/constants.hpp              |    1 
 external/boost/include/boost/math/special_functions/expm1.hpp          |    1 
 external/boost/include/boost/math/special_functions/log1p.hpp          |    1 
 external/boost/include/boost/math/special_functions/sinc.hpp           |    1 
 external/boost/include/boost/multi_array.hpp                           |    1 
 external/boost/include/boost/multi_index/composite_key.hpp             |    1 
 external/boost/include/boost/multi_index/identity.hpp                  |    1 
 external/boost/include/boost/multi_index/mem_fun.hpp                   |    1 
 external/boost/include/boost/multi_index/ordered_index.hpp             |    1 
 external/boost/include/boost/multi_index/random_access_index.hpp       |    1 
 external/boost/include/boost/multi_index_container.hpp                 |    1 
 external/boost/include/boost/noncopyable.hpp                           |    1 
 external/boost/include/boost/none.hpp                                  |    1 
 external/boost/include/boost/numeric/conversion/cast.hpp               |    1 
 external/boost/include/boost/operators.hpp                             |    1 
 external/boost/include/boost/optional.hpp                              |    1 
 external/boost/include/boost/optional/optional.hpp                     |    1 
 external/boost/include/boost/preprocessor/stringize.hpp                |    1 
 external/boost/include/boost/program_options.hpp                       |    1 
 external/boost/include/boost/property_tree/json_parser.hpp             |    1 
 external/boost/include/boost/property_tree/ptree.hpp                   |    1 
 external/boost/include/boost/ptr_container/ptr_vector.hpp              |    1 
 external/boost/include/boost/range/adaptor/reversed.hpp                |    1 
 external/boost/include/boost/range/iterator_range.hpp                  |    1 
 external/boost/include/boost/rational.hpp                              |    1 
 external/boost/include/boost/ref.hpp                                   |    1 
 external/boost/include/boost/scoped_array.hpp                          |    1 
 external/boost/include/boost/scoped_ptr.hpp                            |    1 
 external/boost/include/boost/shared_array.hpp                          |    1 
 external/boost/include/boost/shared_ptr.hpp                            |    1 
 external/boost/include/boost/spirit.hpp                                |    1 
 external/boost/include/boost/spirit/include/classic.hpp                |    1 
 external/boost/include/boost/spirit/include/classic_core.hpp           |    1 
 external/boost/include/boost/spirit/include/classic_error_handling.hpp |    1 
 external/boost/include/boost/spirit/include/classic_file_iterator.hpp  |    1 
 external/boost/include/boost/spirit/include/classic_utility.hpp        |    1 
 external/boost/include/boost/spirit/include/classic_while.hpp          |    1 
 external/boost/include/boost/spirit/include/phoenix.hpp                |    1 
 external/boost/include/boost/spirit/include/qi.hpp                     |    1 
 external/boost/include/boost/spirit/include/qi_attr.hpp                |    1 
 external/boost/include/boost/spirit/include/qi_lit.hpp                 |    1 
 external/boost/include/boost/spirit/include/qi_optional.hpp            |    1 
 external/boost/include/boost/spirit/include/qi_parse_attr.hpp          |    1 
 external/boost/include/boost/spirit/include/qi_sequence.hpp            |    1 
 external/boost/include/boost/spirit/include/qi_symbols.hpp             |    1 
 external/boost/include/boost/static_assert.hpp                         |    1 
 external/boost/include/boost/system/error_code.hpp                     |    1 
 external/boost/include/boost/type_index.hpp                            |    1 
 external/boost/include/boost/unordered_map.hpp                         |    1 
 external/boost/include/boost/unordered_set.hpp                         |    1 
 external/boost/include/boost/uuid/sha1.hpp                             |    1 
 external/boost/include/boost/uuid/uuid_generators.hpp                  |    1 
 external/boost/include/boost/uuid/uuid_io.hpp                          |    1 
 external/boost/include/boost/variant.hpp                               |    1 
 external/boost/include/boost/variant/recursive_variant.hpp             |    1 
 external/boost/include/boost/version.hpp                               |    1 
 external/boost/include/boost/weak_ptr.hpp                              |    1 
 sw/inc/unosett.hxx                                                     |    2 -
 sw/source/core/text/porfld.cxx                                         |    4 +-
 sw/source/core/text/porfld.hxx                                         |    1 
 sw/source/core/text/txtfld.cxx                                         |   12 +++++++-
 sw/source/core/unocore/unosett.cxx                                     |   15 ++++++++--
 sw/source/uibase/config/StoredChapterNumbering.cxx                     |    2 -
 108 files changed, 130 insertions(+), 8 deletions(-)

New commits:
commit 2d1e72e87525969be4983a08df83ace9474e3cf9
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Jan 23 10:40:48 2018 +0100
Commit:     Aron Budea <aron.budea at collabora.com>
CommitDate: Wed Jul 24 02:46:40 2019 +0200

    Silence upcoming GCC 8 -Werror=parentheses in external/boost
    
    ...reporting such delights as
    
    > [CXX] sal/cppunittester/cppunittester.cxx
    > In file included from workdir/UnpackedTarball/boost/boost/mpl/aux_/na_assert.hpp:23,
    [...]
    >                  from external/boost/include/boost/algorithm/string.hpp:25,
    >                  from sal/cppunittester/cppunittester.cxx:60:
    > workdir/UnpackedTarball/boost/boost/mpl/assert.hpp:188:21: error: unnecessary parentheses in declaration of ‘assert_arg’ [-Werror=parentheses]
    >  failed ************ (Pred::************
    >                      ^
    
    where boost/mpl/assert.hpp contains
    
    > template< typename Pred >
    > failed ************ (Pred::************
    >       assert_arg( void (*)(Pred), typename assert_arg_pred<Pred>::type )
    >     );
    
    Reviewed-on: https://gerrit.libreoffice.org/48386
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    (cherry picked from commit b3b22ee3de5ddfc73e44a2d425450b1deeb3ed0d)
    
    Change-Id: I6976b2cc23f1d309d27d3fde9098b10c9d877599

diff --git a/bin/gen-boost-headers b/bin/gen-boost-headers
index b96f6106c790..d6081e036b52 100755
--- a/bin/gen-boost-headers
+++ b/bin/gen-boost-headers
@@ -45,6 +45,7 @@ cat <(cd ${SRCDIR} && git grep -h '^# *include') \
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/algorithm/string.hpp b/external/boost/include/boost/algorithm/string.hpp
index 036fdc2712e6..c5eb1dbdd10e 100644
--- a/external/boost/include/boost/algorithm/string.hpp
+++ b/external/boost/include/boost/algorithm/string.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/algorithm/string/case_conv.hpp b/external/boost/include/boost/algorithm/string/case_conv.hpp
index 2b8e35e9179e..d102429eca91 100644
--- a/external/boost/include/boost/algorithm/string/case_conv.hpp
+++ b/external/boost/include/boost/algorithm/string/case_conv.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/algorithm/string/classification.hpp b/external/boost/include/boost/algorithm/string/classification.hpp
index 0180120c65a8..49c0f94469c6 100644
--- a/external/boost/include/boost/algorithm/string/classification.hpp
+++ b/external/boost/include/boost/algorithm/string/classification.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/algorithm/string/predicate.hpp b/external/boost/include/boost/algorithm/string/predicate.hpp
index 739fd15c71df..d0254355f577 100644
--- a/external/boost/include/boost/algorithm/string/predicate.hpp
+++ b/external/boost/include/boost/algorithm/string/predicate.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/algorithm/string/split.hpp b/external/boost/include/boost/algorithm/string/split.hpp
index dca3b216d253..9c0098eb63b1 100644
--- a/external/boost/include/boost/algorithm/string/split.hpp
+++ b/external/boost/include/boost/algorithm/string/split.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/any.hpp b/external/boost/include/boost/any.hpp
index 36ee5bb46eed..a218821624df 100644
--- a/external/boost/include/boost/any.hpp
+++ b/external/boost/include/boost/any.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/archive/iterators/base64_from_binary.hpp b/external/boost/include/boost/archive/iterators/base64_from_binary.hpp
index f916e5b463cd..abb01e263ed6 100644
--- a/external/boost/include/boost/archive/iterators/base64_from_binary.hpp
+++ b/external/boost/include/boost/archive/iterators/base64_from_binary.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/archive/iterators/binary_from_base64.hpp b/external/boost/include/boost/archive/iterators/binary_from_base64.hpp
index 30f31fefd193..6d3e14a4e474 100644
--- a/external/boost/include/boost/archive/iterators/binary_from_base64.hpp
+++ b/external/boost/include/boost/archive/iterators/binary_from_base64.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/archive/iterators/remove_whitespace.hpp b/external/boost/include/boost/archive/iterators/remove_whitespace.hpp
index f67c3fffe2ab..2981f1f4db45 100644
--- a/external/boost/include/boost/archive/iterators/remove_whitespace.hpp
+++ b/external/boost/include/boost/archive/iterators/remove_whitespace.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/archive/iterators/transform_width.hpp b/external/boost/include/boost/archive/iterators/transform_width.hpp
index c544f190a4e7..f82e7986479d 100644
--- a/external/boost/include/boost/archive/iterators/transform_width.hpp
+++ b/external/boost/include/boost/archive/iterators/transform_width.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/asio.hpp b/external/boost/include/boost/asio.hpp
index c0d4457b6d70..93fce074844f 100644
--- a/external/boost/include/boost/asio.hpp
+++ b/external/boost/include/boost/asio.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/assign.hpp b/external/boost/include/boost/assign.hpp
index fcc4024bd912..70e57e75fc6c 100644
--- a/external/boost/include/boost/assign.hpp
+++ b/external/boost/include/boost/assign.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/bind.hpp b/external/boost/include/boost/bind.hpp
index 5dddbf2f2850..894fefabddef 100644
--- a/external/boost/include/boost/bind.hpp
+++ b/external/boost/include/boost/bind.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/cast.hpp b/external/boost/include/boost/cast.hpp
index 22f842a7994d..36b2879c6df9 100644
--- a/external/boost/include/boost/cast.hpp
+++ b/external/boost/include/boost/cast.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/circular_buffer.hpp b/external/boost/include/boost/circular_buffer.hpp
index 8a6a83b0a0a2..043f5f00c7f4 100644
--- a/external/boost/include/boost/circular_buffer.hpp
+++ b/external/boost/include/boost/circular_buffer.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/config.hpp b/external/boost/include/boost/config.hpp
index c2264c64e9e2..d42f2df9a4f6 100644
--- a/external/boost/include/boost/config.hpp
+++ b/external/boost/include/boost/config.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/container/deque.hpp b/external/boost/include/boost/container/deque.hpp
index 389aed5aff14..096c0deba854 100644
--- a/external/boost/include/boost/container/deque.hpp
+++ b/external/boost/include/boost/container/deque.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/cstdint.hpp b/external/boost/include/boost/cstdint.hpp
index 42ee45d09082..c0578542c7ee 100644
--- a/external/boost/include/boost/cstdint.hpp
+++ b/external/boost/include/boost/cstdint.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/current_function.hpp b/external/boost/include/boost/current_function.hpp
index a7f3fa31a80c..2c1a591bf9c3 100644
--- a/external/boost/include/boost/current_function.hpp
+++ b/external/boost/include/boost/current_function.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/date_time.hpp b/external/boost/include/boost/date_time.hpp
index e9f26fb88bb8..2e71eaec7150 100644
--- a/external/boost/include/boost/date_time.hpp
+++ b/external/boost/include/boost/date_time.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/date_time/posix_time/posix_time.hpp b/external/boost/include/boost/date_time/posix_time/posix_time.hpp
index 56c5a7a0778d..cfd5746c16b3 100644
--- a/external/boost/include/boost/date_time/posix_time/posix_time.hpp
+++ b/external/boost/include/boost/date_time/posix_time/posix_time.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/enable_shared_from_this.hpp b/external/boost/include/boost/enable_shared_from_this.hpp
index c6c5a0693182..32cef5fedbd2 100644
--- a/external/boost/include/boost/enable_shared_from_this.hpp
+++ b/external/boost/include/boost/enable_shared_from_this.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/exception/diagnostic_information.hpp b/external/boost/include/boost/exception/diagnostic_information.hpp
index 885d1d4e3893..038ece7b11b5 100644
--- a/external/boost/include/boost/exception/diagnostic_information.hpp
+++ b/external/boost/include/boost/exception/diagnostic_information.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/filesystem.hpp b/external/boost/include/boost/filesystem.hpp
index 84807f267832..872accd481b9 100644
--- a/external/boost/include/boost/filesystem.hpp
+++ b/external/boost/include/boost/filesystem.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/filesystem/path.hpp b/external/boost/include/boost/filesystem/path.hpp
index a2623affda80..eaa0232c9f29 100644
--- a/external/boost/include/boost/filesystem/path.hpp
+++ b/external/boost/include/boost/filesystem/path.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/foreach.hpp b/external/boost/include/boost/foreach.hpp
index 6b49a6daabe0..de6b688b0b2f 100644
--- a/external/boost/include/boost/foreach.hpp
+++ b/external/boost/include/boost/foreach.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/format.hpp b/external/boost/include/boost/format.hpp
index 51b2544ec099..f34ec57ffcb4 100644
--- a/external/boost/include/boost/format.hpp
+++ b/external/boost/include/boost/format.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/function.hpp b/external/boost/include/boost/function.hpp
index f1e2aff3da7d..19078b0be10e 100644
--- a/external/boost/include/boost/function.hpp
+++ b/external/boost/include/boost/function.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/functional/hash.hpp b/external/boost/include/boost/functional/hash.hpp
index 3af0d0a926d2..2eb71563d738 100644
--- a/external/boost/include/boost/functional/hash.hpp
+++ b/external/boost/include/boost/functional/hash.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/fusion/adapted/std_pair.hpp b/external/boost/include/boost/fusion/adapted/std_pair.hpp
index 5981ea28f140..d1b4ccb6c0b4 100644
--- a/external/boost/include/boost/fusion/adapted/std_pair.hpp
+++ b/external/boost/include/boost/fusion/adapted/std_pair.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/fusion/include/adapt_struct.hpp b/external/boost/include/boost/fusion/include/adapt_struct.hpp
index 33011b14de03..dc8e0bc307af 100644
--- a/external/boost/include/boost/fusion/include/adapt_struct.hpp
+++ b/external/boost/include/boost/fusion/include/adapt_struct.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/intrusive/circular_list_algorithms.hpp b/external/boost/include/boost/intrusive/circular_list_algorithms.hpp
index 21c812d8600b..7aa0e490cd09 100644
--- a/external/boost/include/boost/intrusive/circular_list_algorithms.hpp
+++ b/external/boost/include/boost/intrusive/circular_list_algorithms.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/intrusive_ptr.hpp b/external/boost/include/boost/intrusive_ptr.hpp
index ca3cf0597e14..ba1537aef8a5 100644
--- a/external/boost/include/boost/intrusive_ptr.hpp
+++ b/external/boost/include/boost/intrusive_ptr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/io/ios_state.hpp b/external/boost/include/boost/io/ios_state.hpp
index e6bb1cfab879..decbe1b518b3 100644
--- a/external/boost/include/boost/io/ios_state.hpp
+++ b/external/boost/include/boost/io/ios_state.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/iostreams/device/file_descriptor.hpp b/external/boost/include/boost/iostreams/device/file_descriptor.hpp
index 91f1fc1e19f5..0abf6a5db0f5 100644
--- a/external/boost/include/boost/iostreams/device/file_descriptor.hpp
+++ b/external/boost/include/boost/iostreams/device/file_descriptor.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/iostreams/filter/gzip.hpp b/external/boost/include/boost/iostreams/filter/gzip.hpp
index f190a0d096ac..10dadbf14fd6 100644
--- a/external/boost/include/boost/iostreams/filter/gzip.hpp
+++ b/external/boost/include/boost/iostreams/filter/gzip.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/iostreams/filtering_stream.hpp b/external/boost/include/boost/iostreams/filtering_stream.hpp
index 0aee7b8635d8..18aedec5536a 100644
--- a/external/boost/include/boost/iostreams/filtering_stream.hpp
+++ b/external/boost/include/boost/iostreams/filtering_stream.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/iterator/iterator_facade.hpp b/external/boost/include/boost/iterator/iterator_facade.hpp
index 91aefe551f7b..a6e553b43abc 100644
--- a/external/boost/include/boost/iterator/iterator_facade.hpp
+++ b/external/boost/include/boost/iterator/iterator_facade.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/lexical_cast.hpp b/external/boost/include/boost/lexical_cast.hpp
index f8ac2cca1557..e7f0a8658c02 100644
--- a/external/boost/include/boost/lexical_cast.hpp
+++ b/external/boost/include/boost/lexical_cast.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/locale.hpp b/external/boost/include/boost/locale.hpp
index 83baeaf5aa97..8bcf601c468a 100644
--- a/external/boost/include/boost/locale.hpp
+++ b/external/boost/include/boost/locale.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/locale/gnu_gettext.hpp b/external/boost/include/boost/locale/gnu_gettext.hpp
index f73fe0e5e1ea..1eb2f393bfd2 100644
--- a/external/boost/include/boost/locale/gnu_gettext.hpp
+++ b/external/boost/include/boost/locale/gnu_gettext.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/logic/tribool.hpp b/external/boost/include/boost/logic/tribool.hpp
index 3383f2ea01e2..c387e4a06776 100644
--- a/external/boost/include/boost/logic/tribool.hpp
+++ b/external/boost/include/boost/logic/tribool.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/make_shared.hpp b/external/boost/include/boost/make_shared.hpp
index 6f92fca337f1..fa90e1de3a84 100644
--- a/external/boost/include/boost/make_shared.hpp
+++ b/external/boost/include/boost/make_shared.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/math/common_factor_rt.hpp b/external/boost/include/boost/math/common_factor_rt.hpp
index f892c025b78b..a0a0a1a5f61d 100644
--- a/external/boost/include/boost/math/common_factor_rt.hpp
+++ b/external/boost/include/boost/math/common_factor_rt.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/math/constants/constants.hpp b/external/boost/include/boost/math/constants/constants.hpp
index 1835c364f664..3e3880e237e3 100644
--- a/external/boost/include/boost/math/constants/constants.hpp
+++ b/external/boost/include/boost/math/constants/constants.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/math/special_functions/expm1.hpp b/external/boost/include/boost/math/special_functions/expm1.hpp
index 903198741c56..6753fb68c4d7 100644
--- a/external/boost/include/boost/math/special_functions/expm1.hpp
+++ b/external/boost/include/boost/math/special_functions/expm1.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/math/special_functions/log1p.hpp b/external/boost/include/boost/math/special_functions/log1p.hpp
index cc7e7b0e74a6..64cac1dd1803 100644
--- a/external/boost/include/boost/math/special_functions/log1p.hpp
+++ b/external/boost/include/boost/math/special_functions/log1p.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/math/special_functions/sinc.hpp b/external/boost/include/boost/math/special_functions/sinc.hpp
index c91193d5e075..83faaa292262 100644
--- a/external/boost/include/boost/math/special_functions/sinc.hpp
+++ b/external/boost/include/boost/math/special_functions/sinc.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_array.hpp b/external/boost/include/boost/multi_array.hpp
index 9b16d2aca173..9a8050015864 100644
--- a/external/boost/include/boost/multi_array.hpp
+++ b/external/boost/include/boost/multi_array.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index/composite_key.hpp b/external/boost/include/boost/multi_index/composite_key.hpp
index cd908d030732..233bf774a06f 100644
--- a/external/boost/include/boost/multi_index/composite_key.hpp
+++ b/external/boost/include/boost/multi_index/composite_key.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index/identity.hpp b/external/boost/include/boost/multi_index/identity.hpp
index 597bbd94e6e7..48a834c947d8 100644
--- a/external/boost/include/boost/multi_index/identity.hpp
+++ b/external/boost/include/boost/multi_index/identity.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index/mem_fun.hpp b/external/boost/include/boost/multi_index/mem_fun.hpp
index fc4fd432abce..9f2acdf09d5b 100644
--- a/external/boost/include/boost/multi_index/mem_fun.hpp
+++ b/external/boost/include/boost/multi_index/mem_fun.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index/ordered_index.hpp b/external/boost/include/boost/multi_index/ordered_index.hpp
index 942e897bc946..d55bf1775cfb 100644
--- a/external/boost/include/boost/multi_index/ordered_index.hpp
+++ b/external/boost/include/boost/multi_index/ordered_index.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index/random_access_index.hpp b/external/boost/include/boost/multi_index/random_access_index.hpp
index 826db1359000..eae80144bc26 100644
--- a/external/boost/include/boost/multi_index/random_access_index.hpp
+++ b/external/boost/include/boost/multi_index/random_access_index.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/multi_index_container.hpp b/external/boost/include/boost/multi_index_container.hpp
index 59c993936f77..47f7120b823e 100644
--- a/external/boost/include/boost/multi_index_container.hpp
+++ b/external/boost/include/boost/multi_index_container.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/noncopyable.hpp b/external/boost/include/boost/noncopyable.hpp
index 2c5c10f15cbb..873cc81b9df2 100644
--- a/external/boost/include/boost/noncopyable.hpp
+++ b/external/boost/include/boost/noncopyable.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/none.hpp b/external/boost/include/boost/none.hpp
index d63ab04fb8a5..423847b10bdb 100644
--- a/external/boost/include/boost/none.hpp
+++ b/external/boost/include/boost/none.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/numeric/conversion/cast.hpp b/external/boost/include/boost/numeric/conversion/cast.hpp
index 5b1b83716a93..788dfb21ca2e 100644
--- a/external/boost/include/boost/numeric/conversion/cast.hpp
+++ b/external/boost/include/boost/numeric/conversion/cast.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/operators.hpp b/external/boost/include/boost/operators.hpp
index 93daf45f7a79..ae380dfa2537 100644
--- a/external/boost/include/boost/operators.hpp
+++ b/external/boost/include/boost/operators.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/optional.hpp b/external/boost/include/boost/optional.hpp
index 004cfbfb2337..fa036cb82d5b 100644
--- a/external/boost/include/boost/optional.hpp
+++ b/external/boost/include/boost/optional.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/optional/optional.hpp b/external/boost/include/boost/optional/optional.hpp
index 9872c79c3639..f66d72eed16a 100644
--- a/external/boost/include/boost/optional/optional.hpp
+++ b/external/boost/include/boost/optional/optional.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/preprocessor/stringize.hpp b/external/boost/include/boost/preprocessor/stringize.hpp
index 055101e0c7d4..fd0f52a169e2 100644
--- a/external/boost/include/boost/preprocessor/stringize.hpp
+++ b/external/boost/include/boost/preprocessor/stringize.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/program_options.hpp b/external/boost/include/boost/program_options.hpp
index f6b617b9dd03..651bff9dbd9c 100644
--- a/external/boost/include/boost/program_options.hpp
+++ b/external/boost/include/boost/program_options.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/property_tree/json_parser.hpp b/external/boost/include/boost/property_tree/json_parser.hpp
index bbb7d0c0333d..f11fe1e61da1 100644
--- a/external/boost/include/boost/property_tree/json_parser.hpp
+++ b/external/boost/include/boost/property_tree/json_parser.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/property_tree/ptree.hpp b/external/boost/include/boost/property_tree/ptree.hpp
index c0b50dc0daee..1c727ebc0bf5 100644
--- a/external/boost/include/boost/property_tree/ptree.hpp
+++ b/external/boost/include/boost/property_tree/ptree.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/ptr_container/ptr_vector.hpp b/external/boost/include/boost/ptr_container/ptr_vector.hpp
index 2f3418cd14eb..9aa32e38ca0a 100644
--- a/external/boost/include/boost/ptr_container/ptr_vector.hpp
+++ b/external/boost/include/boost/ptr_container/ptr_vector.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/range/adaptor/reversed.hpp b/external/boost/include/boost/range/adaptor/reversed.hpp
index fb7a9102a73d..a09a793e80b4 100644
--- a/external/boost/include/boost/range/adaptor/reversed.hpp
+++ b/external/boost/include/boost/range/adaptor/reversed.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/range/iterator_range.hpp b/external/boost/include/boost/range/iterator_range.hpp
index ddffc9571385..46c590c5cc5c 100644
--- a/external/boost/include/boost/range/iterator_range.hpp
+++ b/external/boost/include/boost/range/iterator_range.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/rational.hpp b/external/boost/include/boost/rational.hpp
index d98cf5f3890c..f9cc3262120a 100644
--- a/external/boost/include/boost/rational.hpp
+++ b/external/boost/include/boost/rational.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/ref.hpp b/external/boost/include/boost/ref.hpp
index 249c9d9f2229..e9309bc5ca51 100644
--- a/external/boost/include/boost/ref.hpp
+++ b/external/boost/include/boost/ref.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/scoped_array.hpp b/external/boost/include/boost/scoped_array.hpp
index 7cd2bb13c4f3..dbdb4266c06a 100644
--- a/external/boost/include/boost/scoped_array.hpp
+++ b/external/boost/include/boost/scoped_array.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/scoped_ptr.hpp b/external/boost/include/boost/scoped_ptr.hpp
index 87caa025bb63..820cb1ed466b 100644
--- a/external/boost/include/boost/scoped_ptr.hpp
+++ b/external/boost/include/boost/scoped_ptr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/shared_array.hpp b/external/boost/include/boost/shared_array.hpp
index 22c69f5eafc4..93eb4c3b1e57 100644
--- a/external/boost/include/boost/shared_array.hpp
+++ b/external/boost/include/boost/shared_array.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/shared_ptr.hpp b/external/boost/include/boost/shared_ptr.hpp
index b14420236581..b07880eb35d9 100644
--- a/external/boost/include/boost/shared_ptr.hpp
+++ b/external/boost/include/boost/shared_ptr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit.hpp b/external/boost/include/boost/spirit.hpp
index 3caadfc5fa40..eb71717c442f 100644
--- a/external/boost/include/boost/spirit.hpp
+++ b/external/boost/include/boost/spirit.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic.hpp b/external/boost/include/boost/spirit/include/classic.hpp
index e7cceede9e13..856bf28b437b 100644
--- a/external/boost/include/boost/spirit/include/classic.hpp
+++ b/external/boost/include/boost/spirit/include/classic.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic_core.hpp b/external/boost/include/boost/spirit/include/classic_core.hpp
index 3744e3aaded2..691b47efeb89 100644
--- a/external/boost/include/boost/spirit/include/classic_core.hpp
+++ b/external/boost/include/boost/spirit/include/classic_core.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic_error_handling.hpp b/external/boost/include/boost/spirit/include/classic_error_handling.hpp
index 44a5399a28a1..11ee3c50769f 100644
--- a/external/boost/include/boost/spirit/include/classic_error_handling.hpp
+++ b/external/boost/include/boost/spirit/include/classic_error_handling.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic_file_iterator.hpp b/external/boost/include/boost/spirit/include/classic_file_iterator.hpp
index dc653b712e69..f7c5e34f6148 100644
--- a/external/boost/include/boost/spirit/include/classic_file_iterator.hpp
+++ b/external/boost/include/boost/spirit/include/classic_file_iterator.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic_utility.hpp b/external/boost/include/boost/spirit/include/classic_utility.hpp
index cc68c25be990..8e42c7f2b666 100644
--- a/external/boost/include/boost/spirit/include/classic_utility.hpp
+++ b/external/boost/include/boost/spirit/include/classic_utility.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/classic_while.hpp b/external/boost/include/boost/spirit/include/classic_while.hpp
index 4db69909908d..89c7cf490157 100644
--- a/external/boost/include/boost/spirit/include/classic_while.hpp
+++ b/external/boost/include/boost/spirit/include/classic_while.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/phoenix.hpp b/external/boost/include/boost/spirit/include/phoenix.hpp
index 3724683df2e3..660824449edd 100644
--- a/external/boost/include/boost/spirit/include/phoenix.hpp
+++ b/external/boost/include/boost/spirit/include/phoenix.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi.hpp b/external/boost/include/boost/spirit/include/qi.hpp
index 1f116b65b23e..d4b20121461b 100644
--- a/external/boost/include/boost/spirit/include/qi.hpp
+++ b/external/boost/include/boost/spirit/include/qi.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_attr.hpp b/external/boost/include/boost/spirit/include/qi_attr.hpp
index 5c91b1823948..2fc7925693ed 100644
--- a/external/boost/include/boost/spirit/include/qi_attr.hpp
+++ b/external/boost/include/boost/spirit/include/qi_attr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_lit.hpp b/external/boost/include/boost/spirit/include/qi_lit.hpp
index 4905283a3b63..930ae390cd00 100644
--- a/external/boost/include/boost/spirit/include/qi_lit.hpp
+++ b/external/boost/include/boost/spirit/include/qi_lit.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_optional.hpp b/external/boost/include/boost/spirit/include/qi_optional.hpp
index 1546c807919c..1a5741e73b79 100644
--- a/external/boost/include/boost/spirit/include/qi_optional.hpp
+++ b/external/boost/include/boost/spirit/include/qi_optional.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_parse_attr.hpp b/external/boost/include/boost/spirit/include/qi_parse_attr.hpp
index 595cb46f0342..d32168a99c2c 100644
--- a/external/boost/include/boost/spirit/include/qi_parse_attr.hpp
+++ b/external/boost/include/boost/spirit/include/qi_parse_attr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_sequence.hpp b/external/boost/include/boost/spirit/include/qi_sequence.hpp
index 83886e1f7ba0..426ddc4d9456 100644
--- a/external/boost/include/boost/spirit/include/qi_sequence.hpp
+++ b/external/boost/include/boost/spirit/include/qi_sequence.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/spirit/include/qi_symbols.hpp b/external/boost/include/boost/spirit/include/qi_symbols.hpp
index 7dd0557d1847..f327c5cfd48b 100644
--- a/external/boost/include/boost/spirit/include/qi_symbols.hpp
+++ b/external/boost/include/boost/spirit/include/qi_symbols.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/static_assert.hpp b/external/boost/include/boost/static_assert.hpp
index 63e5262196de..d3654b814b0e 100644
--- a/external/boost/include/boost/static_assert.hpp
+++ b/external/boost/include/boost/static_assert.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/system/error_code.hpp b/external/boost/include/boost/system/error_code.hpp
index e3a4cd0fd92a..a3ad5b49739e 100644
--- a/external/boost/include/boost/system/error_code.hpp
+++ b/external/boost/include/boost/system/error_code.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/type_index.hpp b/external/boost/include/boost/type_index.hpp
index 223917a08c6e..018a0dbe44bf 100644
--- a/external/boost/include/boost/type_index.hpp
+++ b/external/boost/include/boost/type_index.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/unordered_map.hpp b/external/boost/include/boost/unordered_map.hpp
index 90c4177c366c..526fc61cc41b 100644
--- a/external/boost/include/boost/unordered_map.hpp
+++ b/external/boost/include/boost/unordered_map.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/unordered_set.hpp b/external/boost/include/boost/unordered_set.hpp
index 1b16ea9a7586..259bc82c37f0 100644
--- a/external/boost/include/boost/unordered_set.hpp
+++ b/external/boost/include/boost/unordered_set.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/uuid/sha1.hpp b/external/boost/include/boost/uuid/sha1.hpp
index 4f4235af5c1f..26fc2b87d3f3 100644
--- a/external/boost/include/boost/uuid/sha1.hpp
+++ b/external/boost/include/boost/uuid/sha1.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/uuid/uuid_generators.hpp b/external/boost/include/boost/uuid/uuid_generators.hpp
index db9248b3945e..cfcd7df0f873 100644
--- a/external/boost/include/boost/uuid/uuid_generators.hpp
+++ b/external/boost/include/boost/uuid/uuid_generators.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/uuid/uuid_io.hpp b/external/boost/include/boost/uuid/uuid_io.hpp
index bf82d06fc0a4..ff3a18429c14 100644
--- a/external/boost/include/boost/uuid/uuid_io.hpp
+++ b/external/boost/include/boost/uuid/uuid_io.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/variant.hpp b/external/boost/include/boost/variant.hpp
index e763bba79ce5..9e60d7c60236 100644
--- a/external/boost/include/boost/variant.hpp
+++ b/external/boost/include/boost/variant.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/variant/recursive_variant.hpp b/external/boost/include/boost/variant/recursive_variant.hpp
index f5bbe7ab56ad..5925079d7d3d 100644
--- a/external/boost/include/boost/variant/recursive_variant.hpp
+++ b/external/boost/include/boost/variant/recursive_variant.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/version.hpp b/external/boost/include/boost/version.hpp
index d18c73a22cab..14e2ffc6ea78 100644
--- a/external/boost/include/boost/version.hpp
+++ b/external/boost/include/boost/version.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
diff --git a/external/boost/include/boost/weak_ptr.hpp b/external/boost/include/boost/weak_ptr.hpp
index 28babafc6c4a..12c5bf4f67ef 100644
--- a/external/boost/include/boost/weak_ptr.hpp
+++ b/external/boost/include/boost/weak_ptr.hpp
@@ -11,6 +11,7 @@
 #pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
 #pragma GCC diagnostic ignored "-Winvalid-constexpr"
 #pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
+#pragma GCC diagnostic ignored "-Wparentheses"
 #pragma GCC diagnostic ignored "-Wplacement-new"
 #pragma GCC diagnostic ignored "-Wreturn-type"
 #pragma GCC diagnostic ignored "-Wshadow"
commit 8cd02e4dbcdd65a21933c347b2433610fafeff08
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 7 09:28:12 2019 +0200
Commit:     Aron Budea <aron.budea at collabora.com>
CommitDate: Wed Jul 24 01:49:54 2019 +0200

    More uses of referer URL with SvxBrushItem
    
    Reviewed-on: https://gerrit.libreoffice.org/73643
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    (cherry picked from commit b518882de8213ef71a8003f95fbdf7689069c06d)
    Conflicts:
            sw/source/core/text/porfld.cxx
            sw/source/core/unocore/unosett.cxx
    
    Reviewed-on: https://gerrit.libreoffice.org/73860
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
    (cherry picked from commit 87c418a98650ab6e4a62a0b4b72e02fee358dced)
    
    Change-Id: I04b524784df4ef453d8b1feec13b62f183a17e23

diff --git a/sw/inc/unosett.hxx b/sw/inc/unosett.hxx
index 295eb06fe671..185b5bcb40fe 100644
--- a/sw/inc/unosett.hxx
+++ b/sw/inc/unosett.hxx
@@ -210,7 +210,7 @@ public:
 
     static css::uno::Sequence<css::beans::PropertyValue> GetPropertiesForNumFormat(
             const SwNumFormat& rFormat, OUString const& rCharFormatName,
-            OUString const* pHeadingStyleName);
+            OUString const* pHeadingStyleName, OUString const & referer);
     static void SetPropertiesToNumFormat(
             SwNumFormat & aFormat,
             OUString & rCharStyleName,
diff --git a/sw/source/core/text/porfld.cxx b/sw/source/core/text/porfld.cxx
index c959f0125a6a..b48bb17dd3ae 100644
--- a/sw/source/core/text/porfld.cxx
+++ b/sw/source/core/text/porfld.cxx
@@ -756,7 +756,7 @@ SwBulletPortion::SwBulletPortion( const sal_Unicode cBullet,
 
 SwGrfNumPortion::SwGrfNumPortion(
         const OUString& rGraphicFollowedBy,
-        const SvxBrushItem* pGrfBrush,
+        const SvxBrushItem* pGrfBrush, OUString const & referer,
         const SwFormatVertOrient* pGrfOrient, const Size& rGrfSize,
         const bool bLft, const bool bCntr, const sal_uInt16 nMinDst,
         const bool bLabelAlignmentPosAndSpaceModeActive ) :
@@ -770,7 +770,7 @@ SwGrfNumPortion::SwGrfNumPortion(
     if( pGrfBrush )
     {
         *pBrush = *pGrfBrush;
-        const Graphic* pGraph = pGrfBrush->GetGraphic();
+        const Graphic* pGraph = pGrfBrush->GetGraphic(referer);
         if( pGraph )
             SetAnimated( pGraph->IsAnimated() );
         else
diff --git a/sw/source/core/text/porfld.hxx b/sw/source/core/text/porfld.hxx
index 80bf49347b51..5b859164a94d 100644
--- a/sw/source/core/text/porfld.hxx
+++ b/sw/source/core/text/porfld.hxx
@@ -168,6 +168,7 @@ class SwGrfNumPortion : public SwNumberPortion
 public:
     SwGrfNumPortion( const OUString& rGraphicFollowedBy,
                      const SvxBrushItem* pGrfBrush,
+                     OUString const & referer,
                      const SwFormatVertOrient* pGrfOrient,
                      const Size& rGrfSize,
                      const bool bLeft,
diff --git a/sw/source/core/text/txtfld.cxx b/sw/source/core/text/txtfld.cxx
index da9aadf13d03..fd001b01e103 100644
--- a/sw/source/core/text/txtfld.cxx
+++ b/sw/source/core/text/txtfld.cxx
@@ -52,6 +52,7 @@
 #include <flddat.hxx>
 #include <fmtautofmt.hxx>
 #include <IDocumentSettingAccess.hxx>
+#include <sfx2/docfile.hxx>
 #include <svl/itemiter.hxx>
 
 static bool lcl_IsInBody( SwFrame const *pFrame )
@@ -483,8 +484,17 @@ SwNumberPortion *SwTextFormatter::NewNumberPortion( SwTextFormatInfo &rInf ) con
 
         if( SVX_NUM_BITMAP == rNumFormat.GetNumberingType() )
         {
+            OUString referer;
+            if (auto const sh1 = rInf.GetVsh()) {
+                if (auto const doc = sh1->GetDoc()) {
+                    auto const sh2 = doc->GetPersist();
+                    if (sh2 != nullptr && sh2->HasName()) {
+                        referer = sh2->GetMedium()->GetName();
+                    }
+                }
+            }
             pRet = new SwGrfNumPortion( pTextNd->GetLabelFollowedBy(),
-                                        rNumFormat.GetBrush(),
+                                        rNumFormat.GetBrush(), referer,
                                         rNumFormat.GetGraphicOrientation(),
                                         rNumFormat.GetGraphicSize(),
                                         bLeft, bCenter, nMinDist,
diff --git a/sw/source/core/unocore/unosett.cxx b/sw/source/core/unocore/unosett.cxx
index f7376b93693f..da076ebf39e2 100644
--- a/sw/source/core/unocore/unosett.cxx
+++ b/sw/source/core/unocore/unosett.cxx
@@ -57,6 +57,7 @@
 #include <vcl/font.hxx>
 #include <editeng/flstitem.hxx>
 #include <vcl/metric.hxx>
+#include <sfx2/docfile.hxx>
 #include <svtools/ctrltool.hxx>
 #include <vcl/svapp.hxx>
 #include <toolkit/helper/vclunohelper.hxx>
@@ -1316,13 +1317,21 @@ uno::Sequence<beans::PropertyValue> SwXNumberingRules::GetNumberingRuleByIndex(
         SwStyleNameMapper::FillProgName(sValue, aUString, SwGetPoolIdFromName::TxtColl);
     }
 
-    return GetPropertiesForNumFormat(rFormat, CharStyleName, (pDocShell) ? & aUString : nullptr);
+    OUString referer;
+    if (pDoc != nullptr) {
+        auto const sh = pDoc->GetPersist();
+        if (sh != nullptr && sh->HasName()) {
+            referer = sh->GetMedium()->GetName();
+        }
+    }
+    return GetPropertiesForNumFormat(
+        rFormat, CharStyleName, (pDocShell) ? & aUString : nullptr, referer);
 
 }
 
 uno::Sequence<beans::PropertyValue> SwXNumberingRules::GetPropertiesForNumFormat(
         const SwNumFormat& rFormat, OUString const& rCharFormatName,
-        OUString const*const pHeadingStyleName)
+        OUString const*const pHeadingStyleName, OUString const & referer)
 {
     bool bChapterNum = pHeadingStyleName != nullptr;
 
@@ -1454,7 +1463,7 @@ uno::Sequence<beans::PropertyValue> SwXNumberingRules::GetPropertiesForNumFormat
             //graphicbitmap
             const Graphic* pGraphic = nullptr;
             if(pBrush )
-                pGraphic = pBrush->GetGraphic();
+                pGraphic = pBrush->GetGraphic(referer);
             if(pGraphic)
             {
                 uno::Reference<awt::XBitmap> xBmp = VCLUnoHelper::CreateBitmap( pGraphic->GetBitmapEx() );
diff --git a/sw/source/uibase/config/StoredChapterNumbering.cxx b/sw/source/uibase/config/StoredChapterNumbering.cxx
index c575863f00e7..b972ec5edd7c 100644
--- a/sw/source/uibase/config/StoredChapterNumbering.cxx
+++ b/sw/source/uibase/config/StoredChapterNumbering.cxx
@@ -129,7 +129,7 @@ public:
         OUString dummy; // pass in empty HeadingStyleName - can't import anyway
         uno::Sequence<beans::PropertyValue> const ret(
             SwXNumberingRules::GetPropertiesForNumFormat(
-                *pNumFormat, *pCharStyleName, &dummy));
+                *pNumFormat, *pCharStyleName, &dummy, ""));
         return uno::makeAny(ret);
     }
 


More information about the Libreoffice-commits mailing list