From 097d0816d06931afd16284309469d71abe437dd9 Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Thu, 6 Sep 2012 17:48:30 +0200 Subject: [PATCH] Fixed #4150 (new ineffective statement check warning wrong). --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index a809e76be..dd06c125d 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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)++;'?"); }