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
```
This commit is contained in:
Michael Maltese 2017-03-25 15:21:35 -07:00
parent 0aec9fa4db
commit b305a6c575
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ TEST_P(VertexLoaderParamTest, PositionAll)
f = *iter++;
g = *iter++;
break;
default:
FAIL() << "Unknown format";
}
ExpectOut(f * scale);
ExpectOut(g * scale);