mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 14:54:35 +00:00
Fix potentially uninitialized return value warnings
This commit is contained in:
parent
7733266417
commit
99b6d6e798
@ -28,7 +28,7 @@ namespace glm
|
|||||||
{
|
{
|
||||||
assert(index >= 0 && index < m[0].length());
|
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)
|
for(length_t i = 0; i < m.length(); ++i)
|
||||||
Result[i] = m[i][index];
|
Result[i] = m[i][index];
|
||||||
return Result;
|
return Result;
|
||||||
|
@ -669,7 +669,7 @@ namespace detail
|
|||||||
T biggestVal = sqrt(fourBiggestSquaredMinus1 + static_cast<T>(1)) * static_cast<T>(0.5);
|
T biggestVal = sqrt(fourBiggestSquaredMinus1 + static_cast<T>(1)) * static_cast<T>(0.5);
|
||||||
T mult = static_cast<T>(0.25) / biggestVal;
|
T mult = static_cast<T>(0.25) / biggestVal;
|
||||||
|
|
||||||
tquat<T, Q> Result;
|
tquat<T, Q> Result = {};
|
||||||
switch(biggestIndex)
|
switch(biggestIndex)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user