From 8962588cecaee405b465cb48480a941cc40af1dd Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Fri, 2 Nov 2018 08:32:10 -0700 Subject: [PATCH] Fix a spurious gcc warning --- CHANGELOG.md | 1 + include/boost/beast/core/impl/buffers_cat.ipp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ec721f2..4a6d7376 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 187: * Fix warning in file tests * Fix uninitialized comparison in buffers iterator * Partial support for BOOST_NO_EXCEPTIONS +* Fix a spurious gcc warning -------------------------------------------------------------------------------- diff --git a/include/boost/beast/core/impl/buffers_cat.ipp b/include/boost/beast/core/impl/buffers_cat.ipp index 81fe8c16..9de1187f 100644 --- a/include/boost/beast/core/impl/buffers_cat.ipp +++ b/include/boost/beast/core/impl/buffers_cat.ipp @@ -34,6 +34,8 @@ class buffers_cat_view::const_iterator struct past_end { + char unused = 0; // make g++8 happy + operator bool() const noexcept { return true;