From 37bf76692de7beb1ed8a19ae6f4def8a4438e4e4 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Thu, 17 Sep 2015 15:37:48 -0400 Subject: [PATCH] Add override keyword on all derived functions: This silences warnings on latest clang compiler. --- beast/module/core/streams/MemoryOutputStream.h | 2 +- beast/utility/WrappedSink.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/beast/module/core/streams/MemoryOutputStream.h b/beast/module/core/streams/MemoryOutputStream.h index dea2b940d..2c2b278e3 100644 --- a/beast/module/core/streams/MemoryOutputStream.h +++ b/beast/module/core/streams/MemoryOutputStream.h @@ -117,7 +117,7 @@ public: capacity off the block, so that its length matches the amount of actual data that has been written so far. */ - void flush(); + void flush() override; bool write (const void*, size_t) override; std::int64_t getPosition() override { return position; } diff --git a/beast/utility/WrappedSink.h b/beast/utility/WrappedSink.h index 18a28eeb9..672812b9c 100644 --- a/beast/utility/WrappedSink.h +++ b/beast/utility/WrappedSink.h @@ -69,17 +69,17 @@ public: } beast::Journal::Severity - severity() const + severity() const override { return sink_.severity(); } - void severity (beast::Journal::Severity level) + void severity (beast::Journal::Severity level) override { sink_.severity (level); } - void write (beast::Journal::Severity level, std::string const& text) + void write (beast::Journal::Severity level, std::string const& text) override { using beast::Journal; sink_.write (level, prefix_ + text);