From aaad03522b3b4f51425e6ca85b68bc5aa79bd4ef Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Tue, 22 Sep 2020 21:02:47 -0400 Subject: [PATCH] [style] fix warnings -Wextra-semi (#5566) --- src/core/mac/mac_frame.hpp | 2 +- src/core/mac/sub_mac.hpp | 2 +- src/core/meshcop/meshcop.hpp | 2 +- src/core/net/dns_headers.hpp | 2 +- src/core/utils/flash.hpp | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/mac/mac_frame.hpp b/src/core/mac/mac_frame.hpp index 039318195..8bae5affa 100644 --- a/src/core/mac/mac_frame.hpp +++ b/src/core/mac/mac_frame.hpp @@ -557,7 +557,7 @@ public: * @retval TRUE if the Source Address is present, FALSE otherwise. * */ - bool IsSrcPanIdPresent(void) const { return IsSrcPanIdPresent(GetFrameControlField()); }; + bool IsSrcPanIdPresent(void) const { return IsSrcPanIdPresent(GetFrameControlField()); } /** * This method gets the Source PAN Identifier. diff --git a/src/core/mac/sub_mac.hpp b/src/core/mac/sub_mac.hpp index 390b5fcd4..bb6cf75f6 100644 --- a/src/core/mac/sub_mac.hpp +++ b/src/core/mac/sub_mac.hpp @@ -489,7 +489,7 @@ public: * @returns The current MAC frame counter value. * */ - uint32_t GetFrameCounter(void) const { return mFrameCounter; }; + uint32_t GetFrameCounter(void) const { return mFrameCounter; } /** * This method sets the current MAC Frame Counter value. diff --git a/src/core/meshcop/meshcop.hpp b/src/core/meshcop/meshcop.hpp index ac053de0d..2f1c1a018 100644 --- a/src/core/meshcop/meshcop.hpp +++ b/src/core/meshcop/meshcop.hpp @@ -434,7 +434,7 @@ private: uint8_t GetNumBits(void) const { return (mLength * CHAR_BIT); } uint8_t BitIndex(uint8_t aBit) const { return (mLength - 1 - (aBit / CHAR_BIT)); } - uint8_t BitFlag(uint8_t aBit) const { return static_cast(1U << (aBit % CHAR_BIT)); }; + uint8_t BitFlag(uint8_t aBit) const { return static_cast(1U << (aBit % CHAR_BIT)); } bool GetBit(uint8_t aBit) const { return (m8[BitIndex(aBit)] & BitFlag(aBit)) != 0; } void SetBit(uint8_t aBit) { m8[BitIndex(aBit)] |= BitFlag(aBit); } diff --git a/src/core/net/dns_headers.hpp b/src/core/net/dns_headers.hpp index 2c0128e5f..2fb0607df 100644 --- a/src/core/net/dns_headers.hpp +++ b/src/core/net/dns_headers.hpp @@ -507,7 +507,7 @@ public: { SetType(aType); SetClass(aClass); - }; + } /** * This method returns the type of the question. diff --git a/src/core/utils/flash.hpp b/src/core/utils/flash.hpp index 3ff665b39..1f1fb40bd 100644 --- a/src/core/utils/flash.hpp +++ b/src/core/utils/flash.hpp @@ -159,7 +159,7 @@ private: mLength = 0; mReserved = 0xffff; - }; + } uint16_t GetKey(void) const { return mKey; } void SetKey(uint16_t aKey) { mKey = aKey; }