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

commit ef96445752fbe9fcfa442bbeb3214eebc2ea8437
Author: Bryan Call <[email protected]>
AuthorDate: Wed Aug 16 15:08:18 2017 -0700

    Added fallthrough comments for Fedora 26 and gcc7 for clustering
---
 iocore/cluster/ClusterCache.cc       | 3 ++-
 iocore/cluster/ClusterHandler.cc     | 1 +
 iocore/cluster/ClusterHandlerBase.cc | 4 ++++
 iocore/cluster/ClusterVConnection.cc | 2 ++
 4 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/iocore/cluster/ClusterCache.cc b/iocore/cluster/ClusterCache.cc
index a4c5828..a114f64 100644
--- a/iocore/cluster/ClusterCache.cc
+++ b/iocore/cluster/ClusterCache.cc
@@ -1433,6 +1433,7 @@ CacheContinuation::VCdataRead(int event, VIO *target_vio)
     }
     // Fall through
   }
+  // fallthrough
   case VC_EVENT_READ_READY:
   case VC_EVENT_READ_COMPLETE: {
     int clone_bytes;
@@ -2184,7 +2185,7 @@ retry:
     MUTEX_UNTAKE_LOCK(remoteCacheContQueueMutex[hash], this_ethread());
     // Fall through
   }
-
+  // fallthrough
   case CACHE_EVENT_RESPONSE_RETRY: {
     // determine result code
 
diff --git a/iocore/cluster/ClusterHandler.cc b/iocore/cluster/ClusterHandler.cc
index 09f1db9..71fb2b9 100644
--- a/iocore/cluster/ClusterHandler.cc
+++ b/iocore/cluster/ClusterHandler.cc
@@ -2997,6 +2997,7 @@ ClusterHandler::process_write(ink_hrtime now, bool 
only_write_control_msgs)
           }
         }
       }
+    // fallthrough
     //////////////////
     default:
       //////////////////
diff --git a/iocore/cluster/ClusterHandlerBase.cc 
b/iocore/cluster/ClusterHandlerBase.cc
index 6202a41..16d42a8 100644
--- a/iocore/cluster/ClusterHandlerBase.cc
+++ b/iocore/cluster/ClusterHandlerBase.cc
@@ -446,6 +446,7 @@ ClusterState::doIO_read_event(int event, void *d)
     v->nbytes = v->ndone;
     // fall through
   }
+  // fallthrough
   case VC_EVENT_READ_COMPLETE: {
     bytes_xfered = v->ndone - last_ndone;
     if (bytes_xfered) {
@@ -871,6 +872,7 @@ ClusterHandler::startClusterEvent(int event, Event *e)
       {
         ink_release_assert(!"Invalid state [CLCON_INITIAL]");
       }
+    // fallthrough
     
////////////////////////////////////////////////////////////////////////////
     case ClusterHandler::CLCON_SEND_MSG:
       
////////////////////////////////////////////////////////////////////////////
@@ -1010,6 +1012,7 @@ ClusterHandler::startClusterEvent(int event, Event *e)
           cluster_connect_state = ClusterHandler::CLCON_CONN_BIND_CLEAR;
         }
       }
+    // fallthrough
 
     case ClusterHandler::CLCON_CONN_BIND_CLEAR: {
       UnixNetVConnection *vc = (UnixNetVConnection *)net_vc;
@@ -1067,6 +1070,7 @@ ClusterHandler::startClusterEvent(int event, Event *e)
         return EVENT_DONE;
       }
     }
+    // fallthrough
 
     case ClusterHandler::CLCON_CONN_BIND_OK: {
       int failed = 0;
diff --git a/iocore/cluster/ClusterVConnection.cc 
b/iocore/cluster/ClusterVConnection.cc
index f15a584..b53f095 100644
--- a/iocore/cluster/ClusterVConnection.cc
+++ b/iocore/cluster/ClusterVConnection.cc
@@ -482,9 +482,11 @@ ClusterVConnection::get_data(int id, void * /* data 
ATS_UNUSED */)
   case CACHE_DATA_HTTP_INFO: {
     ink_release_assert(!"ClusterVConnection::get_data CACHE_DATA_HTTP_INFO not 
supported");
   }
+  // fallthrough
   case CACHE_DATA_KEY: {
     ink_release_assert(!"ClusterVConnection::get_data CACHE_DATA_KEY not 
supported");
   }
+  // fallthrough
   default: {
     ink_release_assert(!"ClusterVConnection::get_data invalid id");
   }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to