diff options
| author | Michael Maltese <michaeljosephmaltese@gmail.com> | 2017-03-25 15:21:35 -0700 |
|---|---|---|
| committer | Michael Maltese <michaeljosephmaltese@gmail.com> | 2017-03-31 13:51:20 -0700 |
| commit | b305a6c575e2b062d4805f2214ad52a7fecf0939 (patch) | |
| tree | 05410505ab8d2376d64588f4415e8aafccd1f20c /Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | |
| parent | 0aec9fa4dbaab839ba0a0c3dba11339464c20626 (diff) | |
VertexLoaderTest: fix maybe-uninitialized warning
Fixes warning:
```
../Source/UnitTests/VideoCommon/VertexLoaderTest.cpp:222:15: error: variable 'f' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
ExpectOut(f * scale);
^
../Source/UnitTests/VideoCommon/VertexLoaderTest.cpp:198:12: note: initialize the variable 'f' to silence this warning
float f, g;
^
= 0.0
../Source/UnitTests/VideoCommon/VertexLoaderTest.cpp:223:15: error: variable 'g' may be uninitialized when used here [-Werror,-Wconditional-uninitialized]
ExpectOut(g * scale);
^
../Source/UnitTests/VideoCommon/VertexLoaderTest.cpp:198:15: note: initialize the variable 'g' to silence this warning
float f, g;
^
= 0.0
```
Diffstat (limited to 'Source/UnitTests/VideoCommon/VertexLoaderTest.cpp')
| -rw-r--r-- | Source/UnitTests/VideoCommon/VertexLoaderTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp index d96694fbb8..54df13351a 100644 --- a/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp +++ b/Source/UnitTests/VideoCommon/VertexLoaderTest.cpp @@ -218,6 +218,8 @@ TEST_P(VertexLoaderParamTest, PositionAll) f = *iter++; g = *iter++; break; + default: + FAIL() << "Unknown format"; } ExpectOut(f * scale); ExpectOut(g * scale); |
