fix -Wfor-loop-analysis and -Wreorder warnings (#15901)

This commit is contained in:
Dane Springmeyer
2019-11-12 06:48:37 -08:00
committed by GitHub
parent 49456e3fc1
commit c1b2e8c9a0
2 changed files with 5 additions and 4 deletions

View File

@@ -1035,7 +1035,8 @@ bool TestRunner::runOperations(const std::string& key, TestMetadata& metadata, R
map.flyTo(mbgl::CameraOptions().withCenter(endPos).withZoom(endZoom), animationOptions);
for (; !transitionFinished; frames++) {
while (!transitionFinished) {
frames++;
frontend.renderOnce(map);
float frameTime = (float)frontend.getFrameTime();
totalTime += frameTime;