- BUGFIX: Fix compiler warnings.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@492 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
e85bd7d5b9
commit
a61411d4b4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue