summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_render
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-04-13 10:26:53 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-13 10:26:53 -0700
commit65ffa4a4ee599194118a0ddf3c26fc3674120b4a (patch)
tree2842a460a0f952f39db202314fa25a0a9f677d4d /core/fpdfapi/fpdf_render
parenteb9cf677ca1bfd9431e43804b5524a1cf9bd9a8f (diff)
downloadpdfium-65ffa4a4ee599194118a0ddf3c26fc3674120b4a.tar.xz
Re-enable warning 4701 for GN build and some cleanup
Clean up three 4701 warnings (use potientially uninitialized variable) which are the only ones left; Re-enable warning 4701 for GN build; Remove an unused data structure; BUG=pdfium:29 Review URL: https://codereview.chromium.org/1885093002
Diffstat (limited to 'core/fpdfapi/fpdf_render')
-rw-r--r--core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp b/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
index 48f9f5d98a..6ac380e43a 100644
--- a/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
+++ b/core/fpdfapi/fpdf_render/fpdf_render_pattern.cpp
@@ -653,7 +653,10 @@ struct CPDF_PatchDrawer {
FX_BOOL bSmall = C1.Distance() < 2 && C2.Distance() < 2 &&
D1.Distance() < 2 && D2.Distance() < 2;
Coon_Color div_colors[4];
- int d_bottom, d_left, d_top, d_right;
+ int d_bottom = 0;
+ int d_left = 0;
+ int d_top = 0;
+ int d_right = 0;
div_colors[0].BiInterpol(patch_colors, left, bottom, x_scale, y_scale);
if (!bSmall) {
div_colors[1].BiInterpol(patch_colors, left, bottom + 1, x_scale,