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 (!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);