Fixed some warnings related to empty statement when using assert & building in release mode

pull/546/head
Léo Terziman 2014-12-18 11:01:16 +01:00
parent 469db95cd5
commit b367d9b390
2 changed files with 2 additions and 2 deletions

View File

@ -1952,7 +1952,7 @@ void ColladaParser::ReadIndexData( Mesh* pMesh)
// small sanity check // small sanity check
if (primType != Prim_TriFans && primType != Prim_TriStrips) if (primType != Prim_TriFans && primType != Prim_TriStrips)
ai_assert(actualPrimitives == numPrimitives); ai_assert(actualPrimitives == numPrimitives)
// only when we're done reading all <p> tags (and thus know the final vertex count) can we commit the submesh // only when we're done reading all <p> tags (and thus know the final vertex count) can we commit the submesh
subgroup.mNumFaces = actualPrimitives; subgroup.mNumFaces = actualPrimitives;

View File

@ -5,7 +5,7 @@
#ifdef ASSIMP_BUILD_DEBUG #ifdef ASSIMP_BUILD_DEBUG
# include <assert.h> # include <assert.h>
# define ai_assert(expression) assert(expression) # define ai_assert(expression) assert(expression);
#else #else
# define ai_assert(expression) # define ai_assert(expression)
#endif #endif