Browse Source

bugfix:
- fix gcc-specific compiler warnings.

Kim Kulling 11 years ago
parent
commit
5d861a8250
3 changed files with 3 additions and 2 deletions
  1. 0 1
      code/OgreBinarySerializer.cpp
  2. 1 1
      code/OgreBinarySerializer.h
  3. 2 0
      code/OgreStructs.cpp

+ 0 - 1
code/OgreBinarySerializer.cpp

@@ -534,7 +534,6 @@ void OgreBinarySerializer::ReadSubMeshTextureAlias(SubMesh *submesh)
 void OgreBinarySerializer::ReadSubMeshNames(Mesh *mesh)
 {
 	uint16_t id = 0;
-	uint16_t submeshIndex = 0;
 
 	if (!AtEnd())
 	{

+ 1 - 1
code/OgreBinarySerializer.h

@@ -75,8 +75,8 @@ private:
 	};
 	
 	OgreBinarySerializer(MemoryStreamReader *reader, AssetMode mode) :
-		m_reader(reader),
 		m_currentLen(0),
+		m_reader(reader),
 		assetMode(mode)
 	{
 	}

+ 2 - 0
code/OgreStructs.cpp

@@ -963,6 +963,8 @@ aiAnimation *Animation::ConvertToAssimpAnimation()
 // Skeleton
 
 Skeleton::Skeleton() :
+	bones(),
+	animations(),
 	blendMode(ANIMBLEND_AVERAGE)
 {
 }