Skip to content

Commit

Permalink
Fixed compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardBruce committed Jan 19, 2016
1 parent b3dd5f9 commit c6001c6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/test/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,6 @@ bool LoadOBJ(const string & fileName,
{
char buffer[BufferSize];
int ip[3];
int in[3];
int it[3];
float x[3];
char * pch;
char * str;
Expand Down Expand Up @@ -567,17 +565,15 @@ bool LoadOBJ(const string & fileName,
if (nt > 0)
{
pch = strtok(NULL, ObjDelimiters);
if (pch) it[k] = atoi(pch) - 1;
else
if (!pch)
{
return false;
}
}
if (nn > 0)
{
pch = strtok(NULL, ObjDelimiters);
if (pch) in[k] = atoi(pch) - 1;
else
if (!pch)
{
return false;
}
Expand Down

0 comments on commit c6001c6

Please sign in to comment.