From e25a3d17e74e47f9d64e08c467dc53ab2874b7e6 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sun, 15 Mar 2020 22:39:56 -0700 Subject: [PATCH] remove extra semicolon Found with -Wextra-semi Signed-off-by: Rosen Penev --- src/Chrono.hxx | 4 ++-- src/lib/dbus/AppendIter.hxx | 2 +- src/thread/Mutex.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Chrono.hxx b/src/Chrono.hxx index 8a5d556fd..3707c835e 100644 --- a/src/Chrono.hxx +++ b/src/Chrono.hxx @@ -95,7 +95,7 @@ public: constexpr double ToDoubleS() const { return double(count()) / 1000.; - }; + } constexpr bool IsZero() const { return count() == 0; @@ -199,7 +199,7 @@ public: constexpr double ToDoubleS() const { return double(count()) / 1000.; - }; + } constexpr bool IsZero() const { return count() == 0; diff --git a/src/lib/dbus/AppendIter.hxx b/src/lib/dbus/AppendIter.hxx index b5859c260..40067e82b 100644 --- a/src/lib/dbus/AppendIter.hxx +++ b/src/lib/dbus/AppendIter.hxx @@ -80,7 +80,7 @@ public: throw std::runtime_error("dbus_message_iter_append_fixed_array() failed"); return *this; - }; + } AppendMessageIter &AppendFixedArray(ConstBuffer value) { return AppendFixedArray(DBUS_TYPE_UINT32, diff --git a/src/thread/Mutex.hxx b/src/thread/Mutex.hxx index 3d79e2307..c0a03529e 100644 --- a/src/thread/Mutex.hxx +++ b/src/thread/Mutex.hxx @@ -53,7 +53,7 @@ class ScopeUnlock { public: explicit ScopeUnlock(Mutex &_mutex) noexcept:mutex(_mutex) { mutex.unlock(); - }; + } ~ScopeUnlock() noexcept { mutex.lock();