]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid class-memaccess warning
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 17 Jul 2019 20:31:14 +0000 (16:31 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Thu, 18 Jul 2019 20:22:45 +0000 (16:22 -0400)
bundled/boost-1.70.0/include/boost/geometry/index/detail/varray_detail.hpp

index 31b77c40fed10bfc7139223ac9c3045555f7fa09..cc669e6fd8f718de862ad4a5fe011acb2fffa285 100644 (file)
 #include <boost/container/vector.hpp>
 #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 <typename I>
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.