Fixed some warnings related to empty statement when using assert & building in release mode
parent
469db95cd5
commit
b367d9b390
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue