CheckOther: Fixed a compiler warning

This commit is contained in:
Daniel Marjamäki 2008-12-05 18:17:51 +00:00
parent a4d4305919
commit 89663bef0a
1 changed files with 8 additions and 3 deletions

View File

@ -283,9 +283,14 @@ void CheckOther::WarningIf()
// Check that there is a condition..
const char *p[6] = {"==","<=",">=","!=","<",">"};
bool iscond = false;
for (int i = 0; i < 6; i++)
if (iscond = (strcmp(cond, p[i]) == 0))
break;
for (int i = 0; i < 6; i++)
{
if (strcmp(cond, p[i]) == 0)
{
iscond = true;
break;
}
}
if (!iscond)
break;