Browse Source

Nothing important

Panagiotis Christopoulos Charitos 5 years ago
parent
commit
2478df4e6b

+ 1 - 0
src/anki/importer/GltfImporter.cpp

@@ -940,6 +940,7 @@ Error GltfImporter::writeAnimation(const cgltf_animation& anim)
 			break;
 		default:
 			ANKI_ASSERT(0);
+			idx = 0;
 		}
 
 		auto it = channelMap.find(channelName.toCString());

+ 2 - 1
src/anki/math/Transform.h

@@ -40,10 +40,11 @@ public:
 
 		const TVec<T, 3> scales{s0.getLength(), s1.getLength(), s2.getLength()};
 		const T E = T(0.001);
+		(void)E;
 		ANKI_ASSERT(
 			isZero(scales.x() - scales.y(), E) && isZero(scales.y() - scales.z(), E) && "Expecting uniform scale");
 
-		m_rotation.setColumns(s0 / scales.x(), s1 / scales.y(), s2 / scales.z(), TVec<T, 3>{0.0});
+		m_rotation.setColumns(s0 / scales.x(), s1 / scales.y(), s2 / scales.z(), TVec<T, 3>(0.0));
 		m_origin = m4.getTranslationPart().xyz0();
 		m_scale = scales.x();
 		checkW();

+ 5 - 5
src/anki/scene/components/SkinComponent.cpp

@@ -46,10 +46,10 @@ Error SkinComponent::update(SceneNode& node, Second prevTime, Second crntTime, B
 	updated = false;
 	const Second dt = crntTime - prevTime;
 
-	Vec4 minExtend{MAX_F32, MAX_F32, MAX_F32, 0.0f};
-	Vec4 maxExtend{MIN_F32, MIN_F32, MIN_F32, 0.0f};
+	Vec4 minExtend(MAX_F32, MAX_F32, MAX_F32, 0.0f);
+	Vec4 maxExtend(MIN_F32, MIN_F32, MIN_F32, 0.0f);
 
-	BitSet<128> bonesAnimated{false};
+	BitSet<128> bonesAnimated(false);
 
 	for(Track& track : m_tracks)
 	{
@@ -108,7 +108,7 @@ Error SkinComponent::update(SceneNode& node, Second prevTime, Second crntTime, B
 		// Walk the bone hierarchy to add additional transforms
 		visitBones(m_skeleton->getRootBone(), Mat4::getIdentity(), bonesAnimated, minExtend, maxExtend);
 
-		const Vec4 E{EPSILON, EPSILON, EPSILON, 0.0f};
+		const Vec4 E(EPSILON, EPSILON, EPSILON, 0.0f);
 		m_boneBoundingVolume.setMin(minExtend - E);
 		m_boneBoundingVolume.setMax(maxExtend + E);
 	}
@@ -135,7 +135,7 @@ void SkinComponent::visitBones(
 	m_boneTrfs[bone.getIndex()] = outMat * bone.getVertexTransform();
 
 	// Update volume
-	const Vec4 bonePos = outMat * Vec4{0.0f, 0.0f, 0.0f, 1.0f};
+	const Vec4 bonePos = outMat * Vec4(0.0f, 0.0f, 0.0f, 1.0f);
 	minExtend = minExtend.min(bonePos.xyz0());
 	maxExtend = maxExtend.max(bonePos.xyz0());
 

+ 1 - 0
src/anki/util/ProcessPosix.cpp

@@ -148,6 +148,7 @@ Error Process::kill(ProcessKillSignal k)
 		break;
 	default:
 		ANKI_ASSERT(0);
+		sig = 0;
 	};
 
 	const pid_t p = ::kill(m_pid, sig);