Show 'Possible' errors without --enable=warning

This commit is contained in:
Daniel Marjamäki 2017-05-16 17:51:45 +02:00
parent 6967d68137
commit 970ff181de
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ bool Settings::isEnabled(Severity::SeverityType severity) const
bool Settings::isEnabled(const ValueFlow::Value *value, bool inconclusiveCheck) const
{
if (!isEnabled(Settings::WARNING) && (!value->isKnown() || value->condition || value->defaultArg))
if (!isEnabled(Settings::WARNING) && (value->condition || value->defaultArg))
return false;
if (!inconclusive && (inconclusiveCheck || value->inconclusive))
return false;