Closed jmcph4 closed 5 years ago
Hi,
I think this warning should never been thrown, and it needs a deeper look. Let me check it again.
@enginmanap that's fine, feel free to knock this one back. I try and keep changes small for that reason.
Hi,
I am working on another feature that became a blocker for 0.6 release, didn't have time sorry. I will look into this as soon as possible.
He @jmcph4, bd63a7 doesn't have that warning anymore. Can you please check?
@enginmanap Same build output as of eb3bd38:
[ 29%] Building CXX object CMakeFiles/LimonEngine.dir/src/Assets/ModelAsset.cpp.o
/home/jmcph4/dev/tmp/_limonEngine2/src/Assets/ModelAsset.cpp: In member function ‘bool ModelAsset::getTransformBlended(std::__cxx11::string, long int, bool, std::__cxx11::string, long int, bool, float, std::vector<glm::tmat4x4<float, (glm::precision)0u> >&) const’:
/home/jmcph4/dev/tmp/_limonEngine2/src/Assets/ModelAsset.cpp:511:108: warning: ‘animationTimeNew’ may be used uninitialized in this function [-Wmaybe-uninitialized]
currentAnimationNew, animationTimeNew, blendFactor, transformMatrix);
^
/home/jmcph4/dev/tmp/_limonEngine2/src/Assets/ModelAsset.cpp:511:108: warning: ‘animationTimeOld’ may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit provides a definition for
animationNewTime
insrc/Assets/ModelAsset.cpp
, fixing a compiler warning complaining of uninitialised values.See #75