mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-17 11:05:06 +02:00
Problem: switch statements without breaks
Solution: add /* FALLTHROUGH */ comments so that nagging compilers don't nag
This commit is contained in:
@@ -433,11 +433,13 @@ void zmq::session_base_t::engine_error (
|
|||||||
|
|
||||||
switch (reason) {
|
switch (reason) {
|
||||||
case stream_engine_t::timeout_error:
|
case stream_engine_t::timeout_error:
|
||||||
|
/* FALLTHROUGH */
|
||||||
case stream_engine_t::connection_error:
|
case stream_engine_t::connection_error:
|
||||||
if (active) {
|
if (active) {
|
||||||
reconnect ();
|
reconnect ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
/* FALLTHROUGH */
|
||||||
case stream_engine_t::protocol_error:
|
case stream_engine_t::protocol_error:
|
||||||
if (pending) {
|
if (pending) {
|
||||||
if (pipe)
|
if (pipe)
|
||||||
|
Reference in New Issue
Block a user