From a61411d4b46d081c505fa325daaea5832d5218d0 Mon Sep 17 00:00:00 2001 From: kimmi Date: Sun, 11 Oct 2009 11:31:49 +0000 Subject: [PATCH] - BUGFIX: Fix compiler warnings. git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@492 67173fc5-114c-0410-ac8e-9d2fd5bffc1f --- code/MD5Parser.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/code/MD5Parser.cpp b/code/MD5Parser.cpp index d43f96214..58adb8e9e 100644 --- a/code/MD5Parser.cpp +++ b/code/MD5Parser.cpp @@ -56,7 +56,7 @@ using namespace Assimp::MD5; // ------------------------------------------------------------------------------------------------ // Parse the segment structure fo a MD5 file -MD5Parser::MD5Parser(char* _buffer, unsigned int _fileSize) +MD5Parser::MD5Parser(char* _buffer, unsigned int /*_fileSize*/ ) { ai_assert(NULL != _buffer && 0 != _fileSize); @@ -70,7 +70,8 @@ MD5Parser::MD5Parser(char* _buffer, unsigned int _fileSize) ParseHeader(); // and read all sections until we're finished - while (1) { + bool running = true; + while (running) { mSections.push_back(Section()); Section& sec = mSections.back(); if(!ParseSection(sec)) { @@ -140,11 +141,13 @@ bool MD5Parser::ParseSection(Section& out) out.mName = std::string(sz,(uintptr_t)(buffer-sz)); SkipSpaces(); - while (1) { + bool running = true; + while (running) { if ('{' == *buffer) { // it is a normal section so read all lines buffer++; - while (true) + bool run = true; + while (run) { if (!SkipSpacesAndLineEnd()) { return false; // seems this was the last section