diff --git a/src/core/coap/coap.cpp b/src/core/coap/coap.cpp index c7e0d3a1d..de1705682 100644 --- a/src/core/coap/coap.cpp +++ b/src/core/coap/coap.cpp @@ -616,8 +616,7 @@ void Coap::ProcessReceivedResponse(Header &aResponseHeader, Message &aMessage, // Send empty ACK if it is a CON message. SendAck(aResponseHeader, aMessageInfo); - // fall through - ; + // fall through case OT_COAP_TYPE_NON_CONFIRMABLE: // Separate response. diff --git a/src/core/thread/link_quality.cpp b/src/core/thread/link_quality.cpp index 5d5159882..5a6e914aa 100644 --- a/src/core/thread/link_quality.cpp +++ b/src/core/thread/link_quality.cpp @@ -243,17 +243,17 @@ uint8_t LinkQualityInfo::CalculateLinkQuality(uint8_t aLinkMargin, uint8_t aLast case 0: threshold1 += kHysteresisThreshold; - // Intentional fall-through to next case. + // fall-through case 1: threshold2 += kHysteresisThreshold; - // Intentional fall-through to next case. + // fall-through case 2: threshold3 += kHysteresisThreshold; - // Intentional fall-through to next case. + // fall-through default: break; diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index aefec19ae..12188b156 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -4588,7 +4588,7 @@ void MleRouter::RemoveChildren(void) case Neighbor::kStateValid: GetNetif().SetStateChangedFlags(OT_CHANGED_THREAD_CHILD_REMOVED); - // Fall-through to next case + // fall-through case Neighbor::kStateChildUpdateRequest: case Neighbor::kStateRestored: