From 65763765a617dd1594f8d8ad3de0e9c07ea99686 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 17 Jul 2019 16:31:14 -0400 Subject: [PATCH] Avoid class-memaccess warning --- .../boost/geometry/index/detail/varray_detail.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.5