]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix some boost warnings by applying old patches.
authorDavid Wells <wellsd2@rpi.edu>
Fri, 21 Oct 2016 19:28:19 +0000 (15:28 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 24 Oct 2016 19:12:27 +0000 (15:12 -0400)
This commit redoes two old commits:

0fd99736f58, which silences a (bogus) warning in GCC 4.8 and GCC 4.9,
  and
56b062ca039, which silences anothor bogus warning in GCC versions
  prior to 4.8.

bundled/boost-1.62.0/include/boost/archive/iterators/istream_iterator.hpp
bundled/boost-1.62.0/include/boost/signals2/detail/variadic_slot_invoker.hpp

index 9a1d555c10802078cea8638ce8f01bcfd672501a..797602c9743f96033f5ef5a897ee62da9c4482f4 100644 (file)
@@ -69,13 +69,15 @@ class istream_iterator :
     Elem m_current_value;
 public:
     istream_iterator(istream_type & is) :
-        m_istream(& is)
+        m_istream(& is),
+        m_current_value()
     {
         //increment();
     }
 
     istream_iterator() :
-        m_istream(NULL)
+        m_istream(NULL),
+        m_current_value()
     {}
 
     istream_iterator(const istream_iterator<Elem> & rhs) :
index 59739b3f36e411e0b31bef46bad26b068a0d482e..8dba6c7c2856e8b92a2d1e0f5398550e74b1a64f 100644 (file)
@@ -102,6 +102,7 @@ namespace boost
             typename boost::enable_if<boost::is_void<typename Func::result_type> >::type * = 0
           ) const
         {
+          (void)args; // Silence a faulty -Wunused-but-set-parameter diagnostic emitted by gcc up to 4.8*
           func(BOOST_SIGNALS2_GET<indices>(args)...);
           return R();
         }

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.