]> https://gitweb.dealii.org/ - dealii.git/commitdiff
work around warning in bundled boost
authorTimo Heister <timo.heister@gmail.com>
Sat, 1 Aug 2020 18:09:58 +0000 (14:09 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 31 Aug 2020 15:05:56 +0000 (11:05 -0400)
/jenkins/workspace/dealii_PR-10786/bundled/boost-1.70.0/include/boost/archive/iterators/istream_iterator.hpp:84:44:
error:
‘<anonymous>.boost::archive::iterators::istream_iterator<char>::m_current_value’
may be used uninitialized in this function [-Werror=maybe-uninitialized]

bundled/boost-1.70.0/include/boost/archive/iterators/istream_iterator.hpp

index a187f605e69a2c681e454bef898a13532fde518c..4080c5f94cc6a18c77161dc9d09c1563556a8b7d 100644 (file)
@@ -69,7 +69,8 @@ class istream_iterator :
     Elem m_current_value;
 public:
     istream_iterator(istream_type & is) :
-        m_istream(& is)
+        m_istream(& is),
+        m_current_value()
     {
         //increment();
     }

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.