Skip to content

Commit 7aae78f

Browse files
committed
Refactoring: Remove unused parameter for AnalyzerInfo::reportErr
1 parent ac52553 commit 7aae78f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/analyzerinfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ bool AnalyzerInformation::analyzeFile(const std::string &buildDir, const std::st
149149
return true;
150150
}
151151

152-
void AnalyzerInformation::reportErr(const ErrorMessage &msg, bool /*verbose*/)
152+
void AnalyzerInformation::reportErr(const ErrorMessage &msg)
153153
{
154154
if (mOutputStream.is_open())
155155
mOutputStream << msg.toXML() << '\n';

lib/analyzerinfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class CPPCHECKLIB AnalyzerInformation {
5656
/** Close current TU.analyzerinfo file */
5757
void close();
5858
bool analyzeFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg, std::size_t hash, std::list<ErrorMessage> *errors);
59-
void reportErr(const ErrorMessage &msg, bool verbose);
59+
void reportErr(const ErrorMessage &msg);
6060
void setFileInfo(const std::string &check, const std::string &fileInfo);
6161
static std::string getAnalyzerInfoFile(const std::string &buildDir, const std::string &sourcefile, const std::string &cfg);
6262
protected:

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1577,7 +1577,7 @@ void CppCheck::reportErr(const ErrorMessage &msg)
15771577
return;
15781578

15791579
if (!mSettings.buildDir.empty())
1580-
mAnalyzerInformation.reportErr(msg, mSettings.verbose);
1580+
mAnalyzerInformation.reportErr(msg);
15811581

15821582
const Suppressions::ErrorMessage errorMessage = msg.toSuppressionsErrorMessage();
15831583

0 commit comments

Comments
 (0)