Use BEAST_FALLTHROUGH to silence warnings

fix #545
This commit is contained in:
Vinnie Falco
2017-07-20 08:15:29 -07:00
parent f3eaa409d1
commit 58d42cc803
13 changed files with 72 additions and 39 deletions
+5 -5
View File
@@ -11,10 +11,10 @@
#include <beast/core/static_string.hpp>
#include <beast/core/type_traits.hpp>
#include <beast/core/detail/clamp.hpp>
#include <beast/core/detail/config.hpp>
#include <beast/http/error.hpp>
#include <beast/http/rfc7230.hpp>
#include <boost/asio/buffer.hpp>
#include <boost/config.hpp>
#include <algorithm>
#include <utility>
@@ -178,7 +178,7 @@ loop:
return 0;
}
state_ = state::header;
BOOST_FALLTHROUGH;
BEAST_FALLTHROUGH;
case state::header:
parse_header(p, n, ec);
@@ -191,7 +191,7 @@ loop:
if(ec)
goto done;
state_ = state::body;
BOOST_FALLTHROUGH;
BEAST_FALLTHROUGH;
case state::body:
parse_body(p, n, ec);
@@ -204,7 +204,7 @@ loop:
if(ec)
goto done;
state_ = state::body_to_eof;
BOOST_FALLTHROUGH;
BEAST_FALLTHROUGH;
case state::body_to_eof:
parse_body_to_eof(p, n, ec);
@@ -217,7 +217,7 @@ loop:
if(ec)
goto done;
state_ = state::chunk_header;
BOOST_FALLTHROUGH;
BEAST_FALLTHROUGH;
case state::chunk_header:
parse_chunk_header(p, n, ec);