fix implicit-fallthrough warnings with gcc 7
This commit is contained in:
parent
bb409c5ee9
commit
6409cb42e1
|
@ -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__
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue