From Sekender, fixed warnins

This commit is contained in:
Robert Osfield
2008-12-17 10:34:09 +00:00
parent ca3e855b9c
commit e754fc5aab
3 changed files with 2 additions and 4 deletions

View File

@@ -357,7 +357,6 @@ osg::Image* ReadVTFFile(std::istream& _istream)
int s, t, r;
unsigned int lrSize;
unsigned char * imageData;
unsigned char * imageDataPtr;
unsigned int base;
unsigned int size;
int mip;

View File

@@ -440,7 +440,6 @@ std::string VBSPReader::findFileIgnoreCase(std::string filePath)
ref_ptr<Texture> VBSPReader::readTextureFile(std::string textureName)
{
int i;
std::string texFile;
std::string texPath;
Image * texImage;
@@ -811,7 +810,7 @@ void VBSPReader::createScene()
char * mtlPtr = 0;
char * tmpPtr = 0;
char tempTex[256];
int i, j;
int i;
ref_ptr<StateSet> stateSet;
// Create the root group for the scene

View File

@@ -403,7 +403,7 @@ bool ReaderWriterCURL::read(std::istream& fin, std::string& destination) const
15 + 32 // autodected zlib or gzip header
);
if (ret != Z_OK)
return ret;
return false;
/* decompress until deflate stream ends or end of file */
do {