From 9b33d1ff71728fcf3b0fa3ae3936b0e4ac156a4c Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Wed, 9 Feb 2022 07:34:31 -0800 Subject: [PATCH] Avoid violating `-Wpedantic` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This cleans up the GCC/Clang compiler warnings like: extra ‘;’ [-Wpedantic] }; // namespace StringUtils --- Fw/Types/StringUtils.hpp | 4 ++-- Os/Posix/TaskId.cpp | 2 +- Os/TaskIdRepr.hpp | 2 +- Svc/CmdSequencer/CmdSequencerImpl.hpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Fw/Types/StringUtils.hpp b/Fw/Types/StringUtils.hpp index c20c637130..d0aaba021a 100644 --- a/Fw/Types/StringUtils.hpp +++ b/Fw/Types/StringUtils.hpp @@ -32,6 +32,6 @@ char* string_copy(char* destination, const char* source, U32 num); */ U32 string_length(const CHAR* source, U32 max_len); -}; // namespace StringUtils -}; // namespace Fw +} // namespace StringUtils +} // namespace Fw #endif // FW_STRINGUTILS_HPP diff --git a/Os/Posix/TaskId.cpp b/Os/Posix/TaskId.cpp index c2d36c7e5c..33274dfaf5 100644 --- a/Os/Posix/TaskId.cpp +++ b/Os/Posix/TaskId.cpp @@ -7,7 +7,7 @@ extern "C" { #include -}; +} #include diff --git a/Os/TaskIdRepr.hpp b/Os/TaskIdRepr.hpp index 21d1f82df8..0d90096d25 100644 --- a/Os/TaskIdRepr.hpp +++ b/Os/TaskIdRepr.hpp @@ -11,7 +11,7 @@ #if defined(TGT_OS_TYPE_LINUX) || defined(TGT_OS_TYPE_DARWIN) extern "C" { #include -}; +} #endif namespace Os { diff --git a/Svc/CmdSequencer/CmdSequencerImpl.hpp b/Svc/CmdSequencer/CmdSequencerImpl.hpp index 9b272b5c58..f9739a6c9e 100644 --- a/Svc/CmdSequencer/CmdSequencerImpl.hpp +++ b/Svc/CmdSequencer/CmdSequencerImpl.hpp @@ -776,6 +776,6 @@ namespace Svc { bool m_join_waiting; }; -}; +} #endif