Patch assert warning lib/checkassert.cpp (#1543)

* Fixed typo in warning about modified variable inside assertion

* Fixed assert warning again in checkassert.cpp
This commit is contained in:
Oliver Schode 2018-12-28 15:25:22 +01:00 committed by Daniel Marjamäki
parent 1dd4c7a71e
commit 22504975b9
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ void CheckAssert::assignmentInAssertError(const Token *tok, const std::string& v
"assignmentInAssert", "assignmentInAssert",
"$symbol:" + varname + "\n" "$symbol:" + varname + "\n"
"Assert statement modifies '$symbol'.\n" "Assert statement modifies '$symbol'.\n"
"Variable '$symbol' is modified insert assert statement. " "Variable '$symbol' is modified inside assert statement. "
"Assert statements are removed from release builds so the code inside " "Assert statements are removed from release builds so the code inside "
"assert statement is not executed. If the code is needed also in release " "assert statement is not executed. If the code is needed also in release "
"builds, this is a bug.", CWE398, false); "builds, this is a bug.", CWE398, false);