| 1488 | } |
| 1489 | |
| 1490 | void CheckUnusedVarImpl::allocatedButUnusedVariableError(const Token *tok, const std::string &varname) |
| 1491 | { |
| 1492 | if (!mSettings.severity.isEnabled(Severity::style) && !mSettings.isPremiumEnabled("unusedVariable")) |
| 1493 | return; |
| 1494 | |
| 1495 | reportError(tok, Severity::style, "unusedAllocatedMemory", "$symbol:" + varname + "\nVariable '$symbol' is allocated memory that is never used.", CWE563, Certainty::normal); |
| 1496 | } |
| 1497 | |
| 1498 | void CheckUnusedVarImpl::unreadVariableError(const Token *tok, const std::string &varname, bool modified) |
| 1499 | { |
no test coverage detected