From 23feac43360fd222e962272246c63d7a0be3a865 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 29 Nov 2016 12:32:31 -0800 Subject: [PATCH] Add explicit fall through comments. (#1018) --- src/core/thread/lowpan.cpp | 2 ++ src/core/thread/mle_router.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/core/thread/lowpan.cpp b/src/core/thread/lowpan.cpp index 6e88c4ce5..41ea66963 100644 --- a/src/core/thread/lowpan.cpp +++ b/src/core/thread/lowpan.cpp @@ -411,6 +411,8 @@ int Lowpan::Compress(Message &aMessage, const Mac::Address &aMacSource, const Ma cur += Compress(aMessage, aMacSource, aMacDest, cur); + // fall through + default: ExitNow(); } diff --git a/src/core/thread/mle_router.cpp b/src/core/thread/mle_router.cpp index 5ac34556c..4f030eccb 100644 --- a/src/core/thread/mle_router.cpp +++ b/src/core/thread/mle_router.cpp @@ -1724,6 +1724,8 @@ void MleRouter::HandleStateUpdateTimer(void) ExitNow(); } + // fall through + case kDeviceStateRouter: // verify path to leader otLogDebgMle("network id timeout = %d", GetLeaderAge());