diff --git a/lib/checkother.cpp b/lib/checkother.cpp index f140f8869..603af7786 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -2914,7 +2914,7 @@ void CheckOther::checkSuspiciousStringCompare() if (varTok->strAt(-1) == "+" || litTok->strAt(1) == "+") continue; - // rough filter for index access (#5734). Might cause false negatives in multidimensional structures + // rough filter for index access (#5734). Might cause false negatives in multidimensional structures if (Token::simpleMatch(varTok->tokAt(1), "[") || Token::simpleMatch(litTok->tokAt(1), "[")) continue; diff --git a/test/testnullpointer.cpp b/test/testnullpointer.cpp index 5956c7a4b..d88e50bc0 100644 --- a/test/testnullpointer.cpp +++ b/test/testnullpointer.cpp @@ -2136,9 +2136,9 @@ private: "}", true); ASSERT_EQUALS("", errout.str()); #else - return; + return; #endif - + } void functioncall() { // #3443 - function calls