external/boost: Work around -fsanitize=bool

Change-Id: I4a34c2ced30770dace39ffd39a530f719174ca7e
This commit is contained in:
Stephan Bergmann
2015-01-07 17:49:25 +01:00
parent 43a0bae9f6
commit e52948e7b7
2 changed files with 13 additions and 0 deletions

View File

@@ -107,6 +107,8 @@ boost_patches += boost.signal2.Wshadow.warnings.patch
boost_patches += boost.boost_static_assert_unused_attribute.patch.0
boost_patches += w4702.patch.0
boost_patches += ubsan.patch.0
$(eval $(call gb_UnpackedTarball_UnpackedTarball,boost))
$(eval $(call gb_UnpackedTarball_set_tarball,boost,$(BOOST_TARBALL)))

11
external/boost/ubsan.patch.0 vendored Normal file
View File

@@ -0,0 +1,11 @@
--- boost/algorithm/string/find_iterator.hpp
+++ boost/algorithm/string/find_iterator.hpp
@@ -240,7 +240,7 @@
m_Match(Other.m_Match),
m_Next(Other.m_Next),
m_End(Other.m_End),
- m_bEof(Other.m_bEof)
+ m_bEof(Other.eof())
{}
//! Constructor