diff options
author | Kevin Lubick <kjlubick@google.com> | 2018-01-05 10:11:11 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-05 18:03:25 +0000 |
commit | 4284613cfe211bfdcf3506f363d382c044ae8b51 (patch) | |
tree | 1004283289d9e70c786dd01702c8a8b144aa5932 /src/gpu/GrRectanizer_skyline.cpp | |
parent | 4c79ecf2f493c0eaa4f58cf0bb086d61ea2aebcb (diff) |
Enable conditional-uninitialized flag
Bug: skia:7462
Cq-Include-Trybots: skia.primary:Test-Debian9-Clang-GCE-CPU-AVX2-x86_64-Release-All-SKNX_NO_SIMD
Change-Id: I1c0a09984bf28a5c620a89af56040f018bae6310
Reviewed-on: https://skia-review.googlesource.com/90941
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'src/gpu/GrRectanizer_skyline.cpp')
-rw-r--r-- | src/gpu/GrRectanizer_skyline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/GrRectanizer_skyline.cpp b/src/gpu/GrRectanizer_skyline.cpp index bbb9859d8e..c4d26e026d 100644 --- a/src/gpu/GrRectanizer_skyline.cpp +++ b/src/gpu/GrRectanizer_skyline.cpp @@ -16,7 +16,7 @@ bool GrRectanizerSkyline::addRect(int width, int height, SkIPoint16* loc) { // find position for new rectangle int bestWidth = this->width() + 1; - int bestX; + int bestX = 0; int bestY = this->height() + 1; int bestIndex = -1; for (int i = 0; i < fSkyline.count(); ++i) { |