Fix potentially uninitialized return value warnings

This commit is contained in:
Cort 2017-10-04 16:47:04 -04:00
parent 7733266417
commit 99b6d6e798
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ namespace glm
{
assert(index >= 0 && index < m[0].length());
typename genType::row_type Result;
typename genType::row_type Result = {};
for(length_t i = 0; i < m.length(); ++i)
Result[i] = m[i][index];
return Result;

View File

@ -669,7 +669,7 @@ namespace detail
T biggestVal = sqrt(fourBiggestSquaredMinus1 + static_cast<T>(1)) * static_cast<T>(0.5);
T mult = static_cast<T>(0.25) / biggestVal;
tquat<T, Q> Result;
tquat<T, Q> Result = {};
switch(biggestIndex)
{
case 0: