diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2020-02-24 09:36:46 +0100 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2020-02-24 19:15:16 +0100 |
commit | 6c4721da4f339d6d1bed6ded0a6ba40d3857b379 (patch) | |
tree | 078e6695bc964dbf8324ca2cec6fdc8ca6d4c575 /bin/gen-boost-headers | |
parent | 49a1ab00af0bcf6095b7029ae9bbcf3f12ccd232 (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 'bin/gen-boost-headers')
-rwxr-xr-x | bin/gen-boost-headers | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/gen-boost-headers b/bin/gen-boost-headers index 7397ecad47d1..5fe0e3a20d08 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 "-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" |