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());