| 1480 | } |
| 1481 | |
| 1482 | void CheckUnusedVarImpl::unusedVariableError(const Token *tok, const std::string &varname) |
| 1483 | { |
| 1484 | if (!mSettings.severity.isEnabled(Severity::style) && !mSettings.isPremiumEnabled("unusedVariable")) |
| 1485 | return; |
| 1486 | |
| 1487 | reportError(tok, Severity::style, "unusedVariable", "$symbol:" + varname + "\nUnused variable: $symbol", CWE563, Certainty::normal); |
| 1488 | } |
| 1489 | |
| 1490 | void CheckUnusedVarImpl::allocatedButUnusedVariableError(const Token *tok, const std::string &varname) |
| 1491 | { |
no test coverage detected