diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 0e9366673..c2edd7dd8 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -260,7 +260,7 @@ void CheckOther::checkEmptyStringTest() void CheckOther::checkFflushOnInputStream() { const Token *tok = _tokenizer->tokens(); - while (tok && (tok = Token::findmatch(tok, "fflush ( stdin )"))) + while (tok && ((tok = Token::findmatch(tok, "fflush ( stdin )")) != NULL)) { fflushOnInputStreamError(tok, tok->strAt(2)); tok = tok->tokAt(4); diff --git a/lib/executionpath.cpp b/lib/executionpath.cpp index 5196c2015..b5e23272e 100644 --- a/lib/executionpath.cpp +++ b/lib/executionpath.cpp @@ -70,11 +70,13 @@ void ExecutionPath::print() const << "\n"; } +#if 0 static void printchecks(const std::list &checks) { for (std::list::const_iterator it = checks.begin(); it != checks.end(); ++it) (*it)->print(); } +#endif static void checkExecutionPaths_(const Token *tok, std::list &checks)