From 592fbb27b12bae98756f8f3f93f2c47e9a58249f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Mi=C5=9B?= Date: Thu, 10 Aug 2017 17:53:47 +0200 Subject: [PATCH] [build] fix GCC7 warnings (#2090) --- src/core/coap/coap.cpp | 3 +-- src/core/thread/link_quality.cpp | 6 +++--- src/core/thread/mle_router.cpp | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) 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: