]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Silence a missing initializer warning in boost.
authorDavid Wells <wellsd2@rpi.edu>
Sun, 23 Oct 2016 12:32:06 +0000 (08:32 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 24 Oct 2016 19:12:27 +0000 (15:12 -0400)
This shows up in GCC 4.8.

bundled/boost-1.62.0/include/boost/atomic/detail/bitwise_cast.hpp

index 8654d10b951ac79eadb712ad1de55e3ae3aaf15e..7455ce21be5d07ee8dbf2e1acbd9ba0ed8b21df6 100644 (file)
@@ -36,7 +36,7 @@ BOOST_FORCEINLINE To bitwise_cast(From const& from) BOOST_NOEXCEPT
     {
         To to;
     }
-    value = {};
+    value = {To()};
     BOOST_ATOMIC_DETAIL_MEMCPY
     (
         &reinterpret_cast< char& >(value.to),

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.