0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-01 19:05:18 +08:00

Problem: switch statements without breaks

Solution: add /* FALLTHROUGH */ comments so that nagging compilers
don't nag
This commit is contained in:
Luca Boccassi 2017-09-01 20:01:15 +01:00
parent 31089326fb
commit 8feed48bb9

View File

@ -433,11 +433,13 @@ void zmq::session_base_t::engine_error (
switch (reason) {
case stream_engine_t::timeout_error:
/* FALLTHROUGH */
case stream_engine_t::connection_error:
if (active) {
reconnect ();
break;
}
/* FALLTHROUGH */
case stream_engine_t::protocol_error:
if (pending) {
if (pipe)