Bump version to 4.1-6
[LibreOffice.git] / boost / boost.4127.warnings.patch
blobfe3c2bf51e95b2a90c18c5a0c7fb5b1f4f260c92
1 --- misc/boost_1_44_0/boost/smart_ptr/make_shared.hpp
2 +++ misc/build/boost_1_44_0/boost/smart_ptr/make_shared.hpp
3 @@ -49,7 +49,18 @@
5 if( initialized_ )
7 +#if defined( __GNUC__ )
9 + // fixes incorrect aliasing warning
10 + T * p = reinterpret_cast< T* >( storage_.data_ );
11 + p->~T();
13 +#else
15 reinterpret_cast< T* >( storage_.data_ )->~T();
17 +#endif
19 initialized_ = false;