Fix ticket #3451 (A (style) type warning witout message text).

This commit is contained in:
Edoardo Prezioso 2011-12-28 17:07:45 +01:00
parent b2f8161862
commit bbac4f1faf
1 changed files with 3 additions and 3 deletions

View File

@ -1644,14 +1644,14 @@ void CheckOther::checkUnreachableCode()
void CheckOther::duplicateBreakError(const Token *tok)
{
reportError(tok, Severity::style, "duplicateBreak",
"Consecutive return, break, continue, goto or throw statements are unnecessary\n"
"The second of the two statements can never be executed, and so should be removed\n");
"Consecutive return, break, continue, goto or throw statements are unnecessary.\n"
"The second of the two statements can never be executed, and so should be removed.");
}
void CheckOther::unreachableCodeError(const Token *tok)
{
reportError(tok, Severity::style, "unreachableCode",
"Statements following return, break, continue, goto or throw will never be executed\n");
"Statements following return, break, continue, goto or throw will never be executed.");
}
//---------------------------------------------------------------------------