fix implicit-fallthrough warnings with gcc 7

This commit is contained in:
Alden Torres 2017-10-23 10:50:24 -04:00 committed by Arvid Norberg
parent bb409c5ee9
commit 6409cb42e1
2 changed files with 4 additions and 0 deletions

View File

@ -50,6 +50,9 @@ POSSIBILITY OF SUCH DAMAGE.
#pragma GCC diagnostic ignored "-Wshift-count-overflow"
#pragma GCC diagnostic ignored "-Wshift-count-negative"
#endif
#if __GNUC__ >= 7
#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
#endif
#endif
#ifdef __clang__

View File

@ -3050,6 +3050,7 @@ bool utp_socket_impl::incoming_packet(span<std::uint8_t const> buf
}
BOOST_FALLTHROUGH;
}
// fall through
case UTP_STATE_CONNECTED:
{
// the lowest seen RTT can be used to clamp the delay