JANITORIAL: fixed compile warnings in release builds

master
Martin Gerhardy 2022-04-28 19:46:06 +02:00
parent e6c6dbbda5
commit 6393a1ed2c
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ bool Palette::addColorToPalette(core::RGBA rgba, bool skipSimilar) {
int bestIndex = -1;
float bestColorDistance = FLT_MAX;
for (int i = 0; i < colorCount; ++i) {
float colorDistance;
float colorDistance = 0.0f;
const int closestColorIdx = getClosestMatch(colors[i], &colorDistance, i);
if (colorDistance < bestColorDistance) {
bestColorDistance = colorDistance;

View File

@ -314,7 +314,7 @@ SceneGraphTransform SceneGraphNode::transformForFrame(uint32_t current) {
_currentAnimKeyFrame = start;
}
double deltaFrameSeconds;
double deltaFrameSeconds = 0.0f;
switch (interpolationType) {
case InterpolationType::Instant:
deltaFrameSeconds = util::easing::full((float)current, (double)start, (double)end);