summaryrefslogtreecommitdiff
path: root/external/boost/include/boost/current_function.hpp
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2020-02-24 09:36:46 +0100
committerMichael Stahl <michael.stahl@cib.de>2020-02-24 19:15:16 +0100
commit6c4721da4f339d6d1bed6ded0a6ba40d3857b379 (patch)
tree078e6695bc964dbf8324ca2cec6fdc8ca6d4c575 /external/boost/include/boost/current_function.hpp
parent49a1ab00af0bcf6095b7029ae9bbcf3f12ccd232 (diff)
boost: disable -Wmaybe-uninitialized from GCC 9.2.1 -Og
This warning is notorious for false positives so let's disable it here. from sal/cppunittester/cppunittester.cxx:61: workdir/UnpackedTarball/boost/boost/function/function_template.hpp: In function ‘SequenceSequenceT& boost::algorithm::iter_split(SequenceSequenceT&, RangeT&&, FinderT) [with SequenceSequenceT = std::__debug::vector<std::__cxx11::basic_string<char> >; RangeT = const char*&; FinderT = boost::algorithm::detail::token_finderF<boost::algorithm::detail::is_any_ofF<char> >]’: workdir/UnpackedTarball/boost/boost/function/function_template.hpp:904:22: error: ‘*((void*)&<anonymous> +8)’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 904 | std::memcpy(this->functor.data, f.functor.data, sizeof(boost::detail::function::function_buffer)); Change-Id: Id3cf9fae8db190337b6a3eb0c847c019394088ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89349 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'external/boost/include/boost/current_function.hpp')
-rw-r--r--external/boost/include/boost/current_function.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/external/boost/include/boost/current_function.hpp b/external/boost/include/boost/current_function.hpp
index 3406c82ae99e..b9668d11850b 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 "-Wignored-qualifiers"
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#pragma GCC diagnostic ignored "-Winvalid-constexpr"
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#pragma GCC diagnostic ignored "-Wmicrosoft-unqualified-friend"
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
#pragma GCC diagnostic ignored "-Wparentheses"