| 1507 | } |
| 1508 | |
| 1509 | void CheckUnusedVarImpl::unassignedVariableError(const Token *tok, const std::string &varname) |
| 1510 | { |
| 1511 | if (!mSettings.severity.isEnabled(Severity::style) && !mSettings.isPremiumEnabled("unusedVariable")) |
| 1512 | return; |
| 1513 | |
| 1514 | reportError(tok, Severity::style, "unassignedVariable", "$symbol:" + varname + "\nVariable '$symbol' is not assigned a value.", CWE665, Certainty::normal); |
| 1515 | } |
| 1516 | |
| 1517 | //--------------------------------------------------------------------------- |
| 1518 | // Check that all struct members are used |
no test coverage detected