From 22504975b994c0636e8de6436d91a0837d070710 Mon Sep 17 00:00:00 2001 From: Oliver Schode Date: Fri, 28 Dec 2018 15:25:22 +0100 Subject: [PATCH] Patch assert warning lib/checkassert.cpp (#1543) * Fixed typo in warning about modified variable inside assertion * Fixed assert warning again in checkassert.cpp --- lib/checkassert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkassert.cpp b/lib/checkassert.cpp index 20c3f4eb7..6d21ec609 100644 --- a/lib/checkassert.cpp +++ b/lib/checkassert.cpp @@ -111,7 +111,7 @@ void CheckAssert::assignmentInAssertError(const Token *tok, const std::string& v "assignmentInAssert", "$symbol:" + varname + "\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 statement is not executed. If the code is needed also in release " "builds, this is a bug.", CWE398, false);