From 99fc5f6203063fb230e9e5b5b28f8dbe9023ba77 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Mon, 18 Mar 2013 20:50:24 +0200 Subject: [PATCH] checkbufferoverrun.cpp: fix a /W4 MSVC warning --- lib/checkbufferoverrun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 38789dae9..4fe4f6437 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -1324,7 +1324,7 @@ bool CheckBufferOverrun::isArrayOfStruct(const Token* tok, int &position) if (Token::Match(tok->next(), "%var% [ %num% ] ")) { tok = tok->tokAt(4); int i = 1; - while (true) { + for (;;) { if (Token::Match(tok->next(), "[ %num% ] ")) { i++; tok = tok->tokAt(4);