From 55035d17c509e381657fa805af2c186ad90c56cc Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 19 May 2024 15:10:10 +0300 Subject: [PATCH] zlib: Annotate fallthrough case --- include/boost/beast/_experimental/unit_test/match.hpp | 1 - include/boost/beast/zlib/detail/inflate_stream.ipp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/boost/beast/_experimental/unit_test/match.hpp b/include/boost/beast/_experimental/unit_test/match.hpp index 0168af80..7520b1ab 100644 --- a/include/boost/beast/_experimental/unit_test/match.hpp +++ b/include/boost/beast/_experimental/unit_test/match.hpp @@ -113,7 +113,6 @@ selector::operator()(suite_info const& s) case all: default: - // fall through break; }; diff --git a/include/boost/beast/zlib/detail/inflate_stream.ipp b/include/boost/beast/zlib/detail/inflate_stream.ipp index b9da3683..3fb7ee55 100644 --- a/include/boost/beast/zlib/detail/inflate_stream.ipp +++ b/include/boost/beast/zlib/detail/inflate_stream.ipp @@ -138,7 +138,7 @@ doWrite(z_params& zs, Flush flush, error_code& ec) case TYPE: if(flush == Flush::block || flush == Flush::trees) return done(); - // fall through + BOOST_FALLTHROUGH; case TYPEDO: {