From: Daniel Arndt Date: Wed, 17 Jul 2019 20:31:14 +0000 (-0400) Subject: Avoid class-memaccess warning X-Git-Tag: v9.2.0-rc1~1337^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65763765a617dd1594f8d8ad3de0e9c07ea99686;p=dealii.git Avoid class-memaccess warning --- diff --git a/bundled/boost-1.70.0/include/boost/geometry/index/detail/varray_detail.hpp b/bundled/boost-1.70.0/include/boost/geometry/index/detail/varray_detail.hpp index 31b77c40fe..cc669e6fd8 100644 --- a/bundled/boost-1.70.0/include/boost/geometry/index/detail/varray_detail.hpp +++ b/bundled/boost-1.70.0/include/boost/geometry/index/detail/varray_detail.hpp @@ -53,6 +53,12 @@ #include #endif // BOOST_GEOMETRY_INDEX_DETAIL_VARRAY_ENABLE_VECTOR_OPTIMIZATION && !BOOST_NO_EXCEPTIONS +//pair memcpy optimizations rightfully detected by GCC +#if defined(BOOST_GCC) && (BOOST_GCC >= 80000) +# pragma GCC diagnostic push +# pragma GCC diagnostic ignored "-Wclass-memaccess" +#endif + namespace boost { namespace geometry { namespace index { namespace detail { namespace varray_detail { template @@ -757,4 +763,9 @@ private: }}}}} // namespace boost::geometry::index::detail::varray_detail +//#pragma GCC diagnostic ignored "-Wclass-memaccess" +#if defined(BOOST_GCC) && (BOOST_GCC >= 80000) +# pragma GCC diagnostic pop +#endif + #endif // BOOST_GEOMETRY_INDEX_DETAIL_VARRAY_DETAIL_HPP