Fixed partially ticket #81 (getting rid of compiler warnings)
This commit is contained in:
parent
3c289e52c5
commit
f14c2d6155
|
@ -422,13 +422,11 @@ void CppCheck::checkFile(const std::string &code, const char FileName[])
|
||||||
|
|
||||||
void CppCheck::reportErr(const std::string &errmsg)
|
void CppCheck::reportErr(const std::string &errmsg)
|
||||||
{
|
{
|
||||||
if (/*OnlyReportUniqueErrors*/ true)
|
// Alert only about unique errors
|
||||||
{
|
if (std::find(_errorList.begin(), _errorList.end(), errmsg) != _errorList.end())
|
||||||
if (std::find(_errorList.begin(), _errorList.end(), errmsg) != _errorList.end())
|
return;
|
||||||
return;
|
|
||||||
_errorList.push_back(errmsg);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
_errorList.push_back(errmsg);
|
||||||
std::string errmsg2(errmsg);
|
std::string errmsg2(errmsg);
|
||||||
if (_settings._verbose)
|
if (_settings._verbose)
|
||||||
{
|
{
|
||||||
|
@ -451,11 +449,11 @@ void CppCheck::reportXml(const std::string &file, const std::string &line, const
|
||||||
{
|
{
|
||||||
std::ostringstream xml;
|
std::ostringstream xml;
|
||||||
xml << "<error";
|
xml << "<error";
|
||||||
xml << " file=\"" + file + "\"";
|
xml << " file=\"" << file << "\"";
|
||||||
xml << " line=\"" + line + "\"";
|
xml << " line=\"" << line << "\"";
|
||||||
xml << " id=\"" + id + "\"";
|
xml << " id=\"" << id << "\"";
|
||||||
xml << " severity=\"" + severity + "\"";
|
xml << " severity=\"" << severity << "\"";
|
||||||
xml << " msg=\"" + msg + "\"";
|
xml << " msg=\"" << msg << "\"";
|
||||||
xml << "/>";
|
xml << "/>";
|
||||||
|
|
||||||
_xmllist.push_back(xml.str());
|
_xmllist.push_back(xml.str());
|
||||||
|
|
Loading…
Reference in New Issue