From 600e90aef47707985e6ea8f5f2452a5b9f6e7bd9 Mon Sep 17 00:00:00 2001 From: tasn Date: Tue, 8 Feb 2011 15:23:22 +0000 Subject: [PATCH] Evas font-query: Fixed compilation warnings. Cedric's compiler doesn't trust me like me compiler trusts me. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56813 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/engines/common/evas_font_query.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/engines/common/evas_font_query.c b/src/lib/engines/common/evas_font_query.c index 3c01732..df28018 100644 --- a/src/lib/engines/common/evas_font_query.c +++ b/src/lib/engines/common/evas_font_query.c @@ -202,10 +202,10 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const Eina_Unicode *text __UNU goto end; } - Evas_Coord cluster_start, last_end; + Evas_Coord cluster_start = 0, last_end = 0; int prev_cluster = -1; int found = 0, items = 1, item_pos = 1; - int last_is_visible; + int last_is_visible = 0; EVAS_FONT_WALK_TEXT_VISUAL_START() { EVAS_FONT_WALK_TEXT_WORK(); @@ -325,10 +325,10 @@ evas_common_font_query_pen_coords(RGBA_Font *fn, const Eina_Unicode *text __UNUS ret_val = 1; goto end; } - Evas_Coord cluster_start; + Evas_Coord cluster_start = 0; int prev_cluster = -1; int found = 0, items = 1, item_pos = 1; - int last_is_visible = 1; + int last_is_visible = 0; EVAS_FONT_WALK_TEXT_VISUAL_START() { EVAS_FONT_WALK_TEXT_WORK(); @@ -417,7 +417,7 @@ evas_common_font_query_char_at_coords(RGBA_Font *fn, const Eina_Unicode *text __ asc = evas_common_font_max_ascent_get(fn); desc = evas_common_font_max_descent_get(fn); - Evas_Coord cluster_start; + Evas_Coord cluster_start = 0; int prev_cluster = -1; int found = 0, items = 1; EVAS_FONT_WALK_TEXT_VISUAL_START() -- 2.7.4