evas map: shut up annoying compile warnings.
authorHermet Park <hermetpark@gmail.com>
Thu, 18 Apr 2019 06:08:35 +0000 (15:08 +0900)
committerYeongjong Lee <yj34.lee@samsung.com>
Wed, 24 Apr 2019 05:24:47 +0000 (14:24 +0900)
These variables must be logically initialized,
but compiler couldn't catch it, prints warnings.

src/lib/evas/common/evas_map_image_internal_high.c

index f842c74..b3945f9 100644 (file)
@@ -354,7 +354,8 @@ _map_triangle_draw_linear(RGBA_Image *src, RGBA_Image *dst,
    int dw = dst->cache_entry.w;
    int x1, x2, x, y, uu, vv, ar, ab, iru, irv, px, ay;
    float dx, u, v, iptr;
-   float _dcdx[4], _dcdya[4], _ca[4], c[4];
+   float _dcdx[4], _dcdya[4], _ca[4];
+   float c[4] = {0, 0, 0, 0};
    DATA32 *buf, *tmp;
    DATA8 *mbuf;