Fixed compilation with HAVE_RULES

This commit is contained in:
PKEuS 2016-07-26 17:10:05 +02:00
parent eafed235a6
commit 13c11b8c1d
1 changed files with 2 additions and 1 deletions

View File

@ -469,6 +469,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const Tokenizer &token
if (!re) {
if (error) {
ErrorLogger::ErrorMessage errmsg(std::list<ErrorLogger::ErrorMessage::FileLocation>(),
emptyString,
Severity::error,
error,
"pcre_compile",
@ -511,7 +512,7 @@ void CppCheck::executeRules(const std::string &tokenlist, const Tokenizer &token
summary = "found '" + str.substr(pos1, pos2 - pos1) + "'";
else
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
reportErr(errmsg);