You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2017/08/18 16:05:16 UTC
[trafficserver] branch 7.1.x updated: Added more fallthrough
comments for Fedora 26 and gcc7 for ICP
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 7.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/7.1.x by this push:
new 673db48 Added more fallthrough comments for Fedora 26 and gcc7 for ICP
673db48 is described below
commit 673db48a1e2e1dfdd2268f209015e8ce85e053ff
Author: Bryan Call <bc...@apache.org>
AuthorDate: Thu Aug 17 21:34:48 2017 -0700
Added more fallthrough comments for Fedora 26 and gcc7 for ICP
---
proxy/ICP.cc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/proxy/ICP.cc b/proxy/ICP.cc
index a5a80de..d37ee2c 100644
--- a/proxy/ICP.cc
+++ b/proxy/ICP.cc
@@ -623,6 +623,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case PROCESS_READ_DATA:
case ADD_PEER: {
ink_release_assert(_recursion_depth == 0);
@@ -752,6 +753,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case AWAITING_CACHE_LOOKUP_RESPONSE: {
int status = 0;
void *data = s->_rICPmsg->un.query.URL;
@@ -793,6 +795,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case SEND_REPLY: {
ink_release_assert(_recursion_depth == 0);
//
@@ -825,6 +828,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case WRITE_DONE: {
s->_peer->writeAction = nullptr;
@@ -852,6 +856,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case GET_ICP_REQUEST: {
ink_release_assert(_recursion_depth == 0);
@@ -877,6 +882,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
break; // move to next_state
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case GET_ICP_REQUEST_MUTEX: {
ink_release_assert(_recursion_depth == 0);
@@ -929,6 +935,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
break; // move to next_state
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case READ_NOT_ACTIVE:
case READ_NOT_ACTIVE_EXIT: {
@@ -955,6 +962,7 @@ ICPPeerReadCont::PeerReadStateMachine(PeerReadData *s, Event *e)
}
}
ink_release_assert(0); // Should never happen
+ // fallthrough
case READ_PROCESSING_COMPLETE:
default:
@@ -1105,6 +1113,7 @@ ICPRequestCont::ICPRequestEvent(int event, Event *e)
}
}
ink_release_assert(0); // should never happen
+ // fallthrough
case ICP_DONE:
default:
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].