CheckOther: Use reportInconclusiveError to report inconclusive error
This commit is contained in:
parent
e8a458edde
commit
6360afdcfa
|
@ -1876,7 +1876,7 @@ void CheckOther::checkUnsignedDivision()
|
||||||
void CheckOther::udivError(const Token *tok, bool inconclusive)
|
void CheckOther::udivError(const Token *tok, bool inconclusive)
|
||||||
{
|
{
|
||||||
if (inconclusive)
|
if (inconclusive)
|
||||||
reportError(tok, Severity::warning, "udivError", "Division with signed and unsigned operators. The result might be wrong.");
|
reportInconclusiveError(tok, Severity::warning, "udivError", "Division with signed and unsigned operators. The result might be wrong.");
|
||||||
else
|
else
|
||||||
reportError(tok, Severity::error, "udivError", "Unsigned division. The result will be wrong.");
|
reportError(tok, Severity::error, "udivError", "Unsigned division. The result will be wrong.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue