瀏覽代碼

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

Léo Terziman 10 年之前
父節點
當前提交
b367d9b390
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      code/ColladaParser.cpp
  2. 1 1
      include/assimp/ai_assert.h

+ 1 - 1
code/ColladaParser.cpp

@@ -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;

+ 1 - 1
include/assimp/ai_assert.h

@@ -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