CTU: Refactoring; Use ValueFlow::Value::errorSeverity

This commit is contained in:
Daniel Marjamäki 2018-12-31 07:50:02 +01:00
parent f2d7cb3ab6
commit 5cc61e55f9
1 changed files with 1 additions and 1 deletions

View File

@ -316,7 +316,7 @@ CTU::FileInfo *CTU::getFileInfo(const Tokenizer *tokenizer)
functionCall.callArgNr = argnr + 1;
functionCall.callArgumentExpression = argtok->expressionString();
functionCall.callArgValue = value.intvalue;
functionCall.warning = (value.condition != nullptr);
functionCall.warning = !value.errorSeverity();
for (const ErrorPathItem &i : value.errorPath) {
ErrorLogger::ErrorMessage::FileLocation loc;
loc.setfile(tokenizer->list.file(i.first));