From 2320034f4a082f6f7d713f2d4253fa90ebb90448 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 17 May 2018 08:47:19 +0200 Subject: [PATCH] fix -Winconsistent-missing-override warnings reported by clang 6.0. --- lib/checkbufferoverrun.h | 2 +- lib/checkunusedfunctions.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/checkbufferoverrun.h b/lib/checkbufferoverrun.h index c2cb5450e..341b9c069 100644 --- a/lib/checkbufferoverrun.h +++ b/lib/checkbufferoverrun.h @@ -244,7 +244,7 @@ public: Check::FileInfo * loadFileInfoFromXml(const tinyxml2::XMLElement *xmlElement) const override; /** @brief Analyse all file infos for all TU */ - bool analyseWholeProgram(const std::list &fileInfo, const Settings& settings, ErrorLogger &errorLogger); + bool analyseWholeProgram(const std::list &fileInfo, const Settings& settings, ErrorLogger &errorLogger) override; /** * Calculates sizeof value for given type. diff --git a/lib/checkunusedfunctions.h b/lib/checkunusedfunctions.h index 2fb1486c2..af30c5829 100644 --- a/lib/checkunusedfunctions.h +++ b/lib/checkunusedfunctions.h @@ -67,7 +67,7 @@ public: Check::FileInfo *getFileInfo(const Tokenizer *tokenizer, const Settings *settings) const override; /** @brief Analyse all file infos for all TU */ - bool analyseWholeProgram(const std::list &fileInfo, const Settings& settings, ErrorLogger &errorLogger); + bool analyseWholeProgram(const std::list &fileInfo, const Settings& settings, ErrorLogger &errorLogger) override; static CheckUnusedFunctions instance;