CheckUnusedFunctions::analyzerInfo(): remove unused parameter 'filename'.

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
                                                                   ^~~~~~~~
This commit is contained in:
Matthias Krüger 2016-11-01 13:34:26 +01:00
parent 476789c1a7
commit 892a81055d
3 changed files with 3 additions and 3 deletions

View File

@ -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; std::ostringstream ret;
for (std::list<FunctionDecl>::const_iterator it = instance._functionDecl.begin(); it != instance._functionDecl.end(); ++it) { for (std::list<FunctionDecl>::const_iterator it = instance._functionDecl.begin(); it != instance._functionDecl.end(); ++it) {

View File

@ -59,7 +59,7 @@ public:
static CheckUnusedFunctions instance; static CheckUnusedFunctions instance;
std::string analyzerInfo(const std::string &filename) const; std::string analyzerInfo() const;
/** @brief Combine and analyze all analyzerInfos for all TUs */ /** @brief Combine and analyze all analyzerInfos for all TUs */
void clear(); void clear();

View File

@ -368,7 +368,7 @@ unsigned int CppCheck::processFile(const std::string& filename, const std::strin
exitcode=1; // e.g. reflect a syntax error exitcode=1; // e.g. reflect a syntax error
} }
analyzerInformation.setFileInfo("CheckUnusedFunctions", CheckUnusedFunctions::instance.analyzerInfo(filename)); analyzerInformation.setFileInfo("CheckUnusedFunctions", CheckUnusedFunctions::instance.analyzerInfo());
analyzerInformation.close(); analyzerInformation.close();
// In jointSuppressionReport mode, unmatched suppressions are // In jointSuppressionReport mode, unmatched suppressions are