- BUGFIX : Fix compiler warning ( not referenced parameter ).

- BUGFIX : Fix compiler warning ( constant condition ).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@491 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
kimmi 2009-10-10 12:32:23 +00:00
parent 5c1804f3ad
commit e85bd7d5b9
2 changed files with 7 additions and 5 deletions

View File

@ -315,8 +315,8 @@ void AnimResolver::DoInterpolation2(std::vector<LWO::Key>::const_iterator beg,
// ------------------------------------------------------------------------------------------------
// Subsample animation track by given key values
void AnimResolver::SubsampleAnimTrack(std::vector<aiVectorKey>& out,
double time,double sample_delta)
void AnimResolver::SubsampleAnimTrack(std::vector<aiVectorKey>& /*out*/,
double /*time*/ ,double /*sample_delta*/ )
{
ai_assert(out.empty() && sample_delta);

View File

@ -54,7 +54,8 @@ using namespace Assimp;
void LWOImporter::LoadLWOBFile()
{
LE_NCONST uint8_t* const end = mFileBuffer + fileSize;
while (true)
bool running = true;
while (running)
{
if (mFileBuffer + sizeof(IFF::ChunkHeader) > end)break;
LE_NCONST IFF::ChunkHeader* const head = IFF::LoadChunk(mFileBuffer);
@ -229,7 +230,8 @@ void LWOImporter::LoadLWOBSurface(unsigned int size)
LWO::Texture* pTex = NULL;
GetS0(surf.mName,size);
while (true) {
bool runnning = true;
while (runnning) {
if (mFileBuffer + 6 >= end)
break;
@ -244,7 +246,7 @@ void LWOImporter::LoadLWOBSurface(unsigned int size)
*/
if (mFileBuffer + head->length > end) {
DefaultLogger::get()->error("LWOB: Invalid surface chunk length. Trying to continue.");
head->length = end - mFileBuffer;
head->length = (uint16_t) (end - mFileBuffer);
}
uint8_t* const next = mFileBuffer+head->length;