[build] fix GCC7 warnings (#2090)

This commit is contained in:
Hubert Miś
2017-08-10 08:53:47 -07:00
committed by Jonathan Hui
parent 96f82b3858
commit 592fbb27b1
3 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -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.
+3 -3
View File
@@ -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;
+1 -1
View File
@@ -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: