Avoid some Visual Studio warnings

This commit is contained in:
firewave 2010-05-18 19:19:15 +02:00
parent e5a04837c0
commit 2bced1d90c
2 changed files with 3 additions and 1 deletions

View File

@ -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);

View File

@ -70,11 +70,13 @@ void ExecutionPath::print() const
<< "\n";
}
#if 0
static void printchecks(const std::list<ExecutionPath *> &checks)
{
for (std::list<ExecutionPath *>::const_iterator it = checks.begin(); it != checks.end(); ++it)
(*it)->print();
}
#endif
static void checkExecutionPaths_(const Token *tok, std::list<ExecutionPath *> &checks)