]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable an assertion in BOOST that GCC 6.x warns about. 3087/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 8 Sep 2016 21:27:58 +0000 (15:27 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 8 Sep 2016 21:27:58 +0000 (15:27 -0600)
GCC says that the compiler can assume that the address of the object that a reference
points to must be nonzero. That's correct. But the warning happens many times during
a build. Since this is more of a sanity check for what the BOOST people are doing
internally, I think there is little harm in just removing the assertion -- we
don't change the BOOST code anyway.

bundled/boost-1.56.0/include/boost/archive/detail/basic_serializer.hpp

index c7d3b4befce4ac783205c76fdb6ebacc4b4c4a05..29c029053b9d6318a03b28271a5a553fbadc1b67 100644 (file)
@@ -42,7 +42,6 @@ protected:
     ) : 
         m_eti(& eti)
     {
-        BOOST_ASSERT(NULL != & eti);
     }
 public:
     inline bool 

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.