]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/intrusive/pointer_plus_bits.hpp
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / boost / boost / intrusive / pointer_plus_bits.hpp
index dfde66b712a5a6ebb3ede4314e345f4a76894645..a39da3244314f0febf6115b18a8ec00a3b790f0e 100644 (file)
 #  pragma once
 #endif
 
+
+//GCC reports uninitialized values when an uninitialized pointer plus bits type
+//is asigned some bits or some pointer value, but that's ok, because we don't want
+//to default initialize parts that are not being updated.
+#if defined(BOOST_GCC)
+#  if (BOOST_GCC >= 40600)
+#     pragma GCC diagnostic push
+#     pragma GCC diagnostic ignored "-Wuninitialized"
+#  endif
+#endif
+
 namespace boost {
 namespace intrusive {
 
@@ -89,6 +100,10 @@ struct pointer_plus_bits<T*, NumBits>
 } //namespace intrusive
 } //namespace boost
 
+#if defined(BOOST_GCC) && (BOOST_GCC >= 40600)
+#  pragma GCC diagnostic pop
+#endif
+
 #include <boost/intrusive/detail/config_end.hpp>
 
 #endif //BOOST_INTRUSIVE_POINTER_PLUS_BITS_HPP