From 8774875e556267569b85881b966094fe9eaa84dc Mon Sep 17 00:00:00 2001 From: Arthur O'Dwyer Date: Fri, 29 Dec 2023 13:43:26 -0500 Subject: [PATCH] Fix -Wsuggest-override warnings from Clang --- snappy.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/snappy.cc b/snappy.cc index 6473123..62786a1 100644 --- a/snappy.cc +++ b/snappy.cc @@ -1695,16 +1695,16 @@ class SnappyIOVecReader : public Source { if (total_size > 0 && curr_size_remaining_ == 0) Advance(); } - ~SnappyIOVecReader() = default; + ~SnappyIOVecReader() override = default; - size_t Available() const { return total_size_remaining_; } + size_t Available() const override { return total_size_remaining_; } - const char* Peek(size_t* len) { + const char* Peek(size_t* len) override { *len = curr_size_remaining_; return curr_pos_; } - void Skip(size_t n) { + void Skip(size_t n) override { while (n >= curr_size_remaining_ && n > 0) { n -= curr_size_remaining_; Advance();