summaryrefslogtreecommitdiff
path: root/src/cairo-polygon-intersect.c
diff options
context:
space:
mode:
authorEnrico Weigelt, metux IT consult <enrico.weigelt@gr13.net>2016-06-30 17:45:42 +0200
committerUli Schlachter <psychon@znc.in>2016-07-02 13:27:11 +0200
commitae403448af410984852aeff76278dc96e7141b9e (patch)
tree955236aa74892477212ea58b9c1cd04e5e1b373a /src/cairo-polygon-intersect.c
parent1272db90f85cf031e5d2ffb73d1af1259c9d4fb9 (diff)
downloadcairo-ae403448af410984852aeff76278dc96e7141b9e.tar.gz
core: fix compiler warnings
The code correct, but the compiler can't check that and thinks there're uninitialized variables. Perhaps we could rewrite it in a better way, so the compiler can do better (even arch specific) optimizations. Signed-off-by: Enrico Weigelt, metux IT consult <enrico.weigelt@gr13.net> Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-polygon-intersect.c')
-rw-r--r--src/cairo-polygon-intersect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-polygon-intersect.c b/src/cairo-polygon-intersect.c
index 8cb8fb120..9c1777f4f 100644
--- a/src/cairo-polygon-intersect.c
+++ b/src/cairo-polygon-intersect.c
@@ -447,7 +447,7 @@ edges_compare_x_for_y (const cairo_bo_edge_t *a,
HAVE_BX = 0x2,
HAVE_BOTH = HAVE_AX | HAVE_BX
} have_ax_bx = HAVE_BOTH;
- int32_t ax, bx;
+ int32_t ax = 0, bx = 0;
if (y == a->edge.line.p1.y)
ax = a->edge.line.p1.x;