diff --git a/lib/ctu.cpp b/lib/ctu.cpp index 93e0c23dc..4d628819a 100644 --- a/lib/ctu.cpp +++ b/lib/ctu.cpp @@ -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));