Fixed #4150 (new ineffective statement check warning wrong).

This commit is contained in:
Edoardo Prezioso 2012-09-06 17:48:30 +02:00
parent e2bc381550
commit 097d0816d0
1 changed files with 1 additions and 1 deletions

View File

@ -271,7 +271,7 @@ void CheckOther::clarifyStatement()
void CheckOther::clarifyStatementError(const Token *tok, const std::string &expr, const std::string &suggested)
{
reportError(tok, Severity::warning, "clarifyStatement", "Ineffective statement: '" + expr + "'. Did you intend to write '" + suggested + "'?\n"
"A statement like '*expr++;' might not do what you intended. 'operator*' is executed before postfix 'operator++'. "
"A statement like '*expr++;' might not do what you intended. Postfix 'operator++' is executed before 'operator*'. "
"Thus, the dereference is meaningless. Did you intend to write '(*expr)++;'?");
}