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:
parent
476789c1a7
commit
892a81055d
|
@ -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<FunctionDecl>::const_iterator it = instance._functionDecl.begin(); it != instance._functionDecl.end(); ++it) {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue