From 892a81055deaeb195df5c6c05ac88423ac0a79e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Tue, 1 Nov 2016 13:34:26 +0100 Subject: [PATCH] CheckUnusedFunctions::analyzerInfo(): remove unused parameter 'filename'. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Was: lib/checkunusedfunctions.cpp: In member function ‘std::__cxx11::string CheckUnusedFunctions::analyzerInfo(const string&) const’: lib/checkunusedfunctions.cpp:292:67: warning: unused parameter ‘filename’ [-Wunused-parameter] std::string CheckUnusedFunctions::analyzerInfo(const std::string &filename) const ^~~~~~~~ --- lib/checkunusedfunctions.cpp | 2 +- lib/checkunusedfunctions.h | 2 +- lib/cppcheck.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/checkunusedfunctions.cpp b/lib/checkunusedfunctions.cpp index 15187d8e7..5ee62f1da 100644 --- a/lib/checkunusedfunctions.cpp +++ b/lib/checkunusedfunctions.cpp @@ -289,7 +289,7 @@ CheckUnusedFunctions::FunctionDecl::FunctionDecl(const Function *f) { } -std::string CheckUnusedFunctions::analyzerInfo(const std::string &filename) const +std::string CheckUnusedFunctions::analyzerInfo() const { std::ostringstream ret; for (std::list::const_iterator it = instance._functionDecl.begin(); it != instance._functionDecl.end(); ++it) { diff --git a/lib/checkunusedfunctions.h b/lib/checkunusedfunctions.h index 063b55158..e1fed6f2f 100644 --- a/lib/checkunusedfunctions.h +++ b/lib/checkunusedfunctions.h @@ -59,7 +59,7 @@ public: static CheckUnusedFunctions instance; - std::string analyzerInfo(const std::string &filename) const; + std::string analyzerInfo() const; /** @brief Combine and analyze all analyzerInfos for all TUs */ void clear(); diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index 1dcd19fe2..b828b8567 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -368,7 +368,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin exitcode=1; // e.g. reflect a syntax error } - analyzerInformation.setFileInfo("CheckUnusedFunctions", CheckUnusedFunctions::instance.analyzerInfo(filename)); + analyzerInformation.setFileInfo("CheckUnusedFunctions", CheckUnusedFunctions::instance.analyzerInfo()); analyzerInformation.close(); // In jointSuppressionReport mode, unmatched suppressions are