From 89663bef0a0bcbf6be31029c4b81fb0ccb2821d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Fri, 5 Dec 2008 18:17:51 +0000 Subject: [PATCH] CheckOther: Fixed a compiler warning --- CheckOther.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/CheckOther.cpp b/CheckOther.cpp index 58c530491..b5d47465c 100644 --- a/CheckOther.cpp +++ b/CheckOther.cpp @@ -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;