Use BOOST_FALLTHROUGH

fix #437
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:12:19 -07:00
1 parent cff5be3837
commit 55358835c6
12 files changed
+43 -31

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@
#include <boost/asio/handler_alloc_hook.hpp>
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <memory>
@@ -153,7 +154,7 @@ operator()(error_code ec, bool again)
return;
}
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case 1:
// send close frame
+2 -1
View File
@@ -15,6 +15,7 @@
#include <boost/asio/handler_alloc_hook.hpp>
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <memory>
@@ -152,7 +153,7 @@ operator()(error_code ec, bool again)
return;
}
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case 1:
// send ping frame
+2 -1
View File
@@ -18,6 +18,7 @@
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/optional.hpp>
#include <boost/throw_exception.hpp>
#include <limits>
@@ -522,7 +523,7 @@ operator()(error_code ec,
ec = boost::asio::error::operation_aborted;
goto upcall;
}
// [[fallthrough]]
BOOST_FALLTHROUGH;
//------------------------------------------------------------------
+6 -5
View File
@@ -21,6 +21,7 @@
#include <boost/asio/handler_continuation_hook.hpp>
#include <boost/asio/handler_invoke_hook.hpp>
#include <boost/assert.hpp>
#include <boost/config.hpp>
#include <boost/throw_exception.hpp>
#include <algorithm>
#include <memory>
@@ -230,7 +231,7 @@ operator()(error_code ec,
case do_nomask_nofrag:
BOOST_ASSERT(! d.ws.wr_block_);
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case do_nomask_nofrag + 1:
{
@@ -253,7 +254,7 @@ operator()(error_code ec,
case do_nomask_frag:
BOOST_ASSERT(! d.ws.wr_block_);
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case do_nomask_frag + 1:
{
@@ -301,7 +302,7 @@ operator()(error_code ec,
case do_mask_nofrag:
BOOST_ASSERT(! d.ws.wr_block_);
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case do_mask_nofrag + 1:
{
@@ -353,7 +354,7 @@ operator()(error_code ec,
case do_mask_frag:
BOOST_ASSERT(! d.ws.wr_block_);
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case do_mask_frag + 1:
{
@@ -406,7 +407,7 @@ operator()(error_code ec,
case do_deflate:
BOOST_ASSERT(! d.ws.wr_block_);
d.ws.wr_block_ = &d;
// [[fallthrough]]
BOOST_FALLTHROUGH;
case do_deflate + 1:
{