diff options
author | Enrico Weigelt, metux IT consult <enrico.weigelt@gr13.net> | 2016-06-30 17:45:42 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2016-07-02 13:27:11 +0200 |
commit | ae403448af410984852aeff76278dc96e7141b9e (patch) | |
tree | 955236aa74892477212ea58b9c1cd04e5e1b373a /src/cairo-polygon-reduce.c | |
parent | 1272db90f85cf031e5d2ffb73d1af1259c9d4fb9 (diff) | |
download | cairo-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-reduce.c')
-rw-r--r-- | src/cairo-polygon-reduce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-polygon-reduce.c b/src/cairo-polygon-reduce.c index ea457fe4e..da6c9ab7c 100644 --- a/src/cairo-polygon-reduce.c +++ b/src/cairo-polygon-reduce.c @@ -445,7 +445,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; |