Removed unused variable CppCheck::_errout.
This commit is contained in:
parent
4df6ad1a73
commit
772108374e
|
@ -22,6 +22,7 @@
|
|||
#include "preprocessor.h"
|
||||
#include "errorlogger.h"
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
#include <cstdlib> // EXIT_SUCCESS and EXIT_FAILURE
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include "timer.h"
|
||||
|
||||
|
@ -147,8 +148,6 @@ unsigned int CppCheck::processFile(const std::string& filename)
|
|||
analyseFile(f, filename);
|
||||
}
|
||||
|
||||
_errout.str("");
|
||||
|
||||
if (_settings.terminated())
|
||||
return exitcode;
|
||||
|
||||
|
@ -258,7 +257,6 @@ void CppCheck::checkFunctionUsage()
|
|||
const bool verbose_orig = _settings._verbose;
|
||||
_settings._verbose = false;
|
||||
|
||||
_errout.str("");
|
||||
if (_settings._errorsOnly == false)
|
||||
_errorLogger.reportOut("Checking usage of global functions..");
|
||||
|
||||
|
@ -497,8 +495,6 @@ void CppCheck::reportErr(const ErrorLogger::ErrorMessage &msg)
|
|||
}
|
||||
|
||||
_errorLogger.reportErr(msg);
|
||||
|
||||
_errout << errmsg << std::endl;
|
||||
}
|
||||
|
||||
void CppCheck::reportOut(const std::string &outmsg)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <string>
|
||||
#include <list>
|
||||
#include <sstream>
|
||||
#include <istream>
|
||||
|
||||
/// @addtogroup Core
|
||||
/// @{
|
||||
|
@ -169,7 +169,6 @@ private:
|
|||
|
||||
unsigned int exitcode;
|
||||
std::list<std::string> _errorList;
|
||||
std::ostringstream _errout;
|
||||
Settings _settings;
|
||||
bool _useGlobalSuppressions;
|
||||
std::string _fileContent;
|
||||
|
|
Loading…
Reference in New Issue