Show 'Possible' errors without --enable=warning
This commit is contained in:
parent
6967d68137
commit
970ff181de
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue