CheckOther: Fixed a compiler warning
This commit is contained in:
parent
a4d4305919
commit
89663bef0a
|
@ -283,9 +283,14 @@ void CheckOther::WarningIf()
|
||||||
// Check that there is a condition..
|
// Check that there is a condition..
|
||||||
const char *p[6] = {"==","<=",">=","!=","<",">"};
|
const char *p[6] = {"==","<=",">=","!=","<",">"};
|
||||||
bool iscond = false;
|
bool iscond = false;
|
||||||
for (int i = 0; i < 6; i++)
|
for (int i = 0; i < 6; i++)
|
||||||
if (iscond = (strcmp(cond, p[i]) == 0))
|
{
|
||||||
break;
|
if (strcmp(cond, p[i]) == 0)
|
||||||
|
{
|
||||||
|
iscond = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!iscond)
|
if (!iscond)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue