From e2ef99e3b16571d1489bb5eac90be0a6eba35dcd Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 7 Mar 2016 07:36:54 +0300 Subject: [PATCH] Fixing warnings on clang [#METR-2807]. --- dbms/include/DB/IO/ReadBufferFromFile.h | 2 +- dbms/include/DB/IO/WriteBufferFromFile.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/include/DB/IO/ReadBufferFromFile.h b/dbms/include/DB/IO/ReadBufferFromFile.h index 66d8983946d..c859aa05294 100644 --- a/dbms/include/DB/IO/ReadBufferFromFile.h +++ b/dbms/include/DB/IO/ReadBufferFromFile.h @@ -63,7 +63,7 @@ public: metric_increment.destroy(); } - virtual std::string getFileName() + std::string getFileName() const override { return file_name; } diff --git a/dbms/include/DB/IO/WriteBufferFromFile.h b/dbms/include/DB/IO/WriteBufferFromFile.h index 0b9add1e826..601b69e7de0 100644 --- a/dbms/include/DB/IO/WriteBufferFromFile.h +++ b/dbms/include/DB/IO/WriteBufferFromFile.h @@ -84,7 +84,7 @@ public: * This includes writing through or flushing a disk cache if present. The call blocks until the device * reports that the transfer has completed. It also flushes metadata information associated with the file (see stat(2)). * - man fsync */ - void sync() + void sync() override { fsync(fd); }