diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fddae96..a298df1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ 1.0.0-b25 * Fixes for WebSocket echo server +* Fix 32-bit arm7 warnings API Changes: diff --git a/include/beast/core/detail/buffer_cat.hpp b/include/beast/core/detail/buffer_cat.hpp index b94d9965..e414b7ed 100644 --- a/include/beast/core/detail/buffer_cat.hpp +++ b/include/beast/core/detail/buffer_cat.hpp @@ -83,7 +83,8 @@ class buffer_cat_helper::const_iterator iter() { return *reinterpret_cast< - iter_t*>(buf_.data()); + iter_t*>(static_cast( + buf_.data())); } template @@ -91,7 +92,8 @@ class buffer_cat_helper::const_iterator iter() const { return *reinterpret_cast< - iter_t const*>(buf_.data()); + iter_t const*>(static_cast< + void const*>(buf_.data())); } public: diff --git a/include/beast/core/impl/basic_streambuf.ipp b/include/beast/core/impl/basic_streambuf.ipp index a3fdcef7..710a5a1a 100644 --- a/include/beast/core/impl/basic_streambuf.ipp +++ b/include/beast/core/impl/basic_streambuf.ipp @@ -598,9 +598,9 @@ basic_streambuf::prepare(size_type n) -> while(n > 0) { auto const size = std::max(alloc_size_, n); - auto& e = *reinterpret_cast( - alloc_traits::allocate(this->member(), - sizeof(element) + size)); + auto& e = *reinterpret_cast(static_cast< + void*>(alloc_traits::allocate(this->member(), + sizeof(element) + size))); alloc_traits::construct(this->member(), &e, size); list_.push_back(e); if(out_ == list_.end())