From efbe65dad6630f0a44030b1bf88b7db0c10bed20 Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Sat, 10 Oct 2009 22:58:45 +0300 Subject: [PATCH] Get rid of compiler warning warning C4127: conditional expression is constant --- src/preprocessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preprocessor.cpp b/src/preprocessor.cpp index 9a216c3db..8ee0f0ece 100644 --- a/src/preprocessor.cpp +++ b/src/preprocessor.cpp @@ -1027,7 +1027,7 @@ std::string Preprocessor::getcode(const std::string &filedata, std::string cfg, std::map cfgmap; { std::string::size_type pos = 0; - while (true) + for (;;) { std::string::size_type pos2 = cfg.find_first_of(";=", pos); if (pos2 == std::string::npos)