Fixed compilation with HAVE_RULES
This commit is contained in:
parent
eafed235a6
commit
13c11b8c1d
|
@ -469,6 +469,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const Tokenizer &token
|
||||||
if (!re) {
|
if (!re) {
|
||||||
if (error) {
|
if (error) {
|
||||||
ErrorLogger::ErrorMessage errmsg(std::list<ErrorLogger::ErrorMessage::FileLocation>(),
|
ErrorLogger::ErrorMessage errmsg(std::list<ErrorLogger::ErrorMessage::FileLocation>(),
|
||||||
|
emptyString,
|
||||||
Severity::error,
|
Severity::error,
|
||||||
error,
|
error,
|
||||||
"pcre_compile",
|
"pcre_compile",
|
||||||
|
@ -511,7 +512,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const Tokenizer &token
|
||||||
summary = "found '" + str.substr(pos1, pos2 - pos1) + "'";
|
summary = "found '" + str.substr(pos1, pos2 - pos1) + "'";
|
||||||
else
|
else
|
||||||
summary = rule.summary;
|
summary = rule.summary;
|
||||||
const ErrorLogger::ErrorMessage errmsg(callStack, rule.severity, summary, rule.id, false);
|
const ErrorLogger::ErrorMessage errmsg(callStack, tokenizer.list.getSourceFilePath(), rule.severity, summary, rule.id, false);
|
||||||
|
|
||||||
// Report error
|
// Report error
|
||||||
reportErr(errmsg);
|
reportErr(errmsg);
|
||||||
|
|
Loading…
Reference in New Issue