From 85f43963f2192d1bf063b4c52b114cf53ba6edf0 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Mon, 14 Nov 2011 14:34:55 +0900 Subject: [PATCH] [entry] Fix a warning elm_entry.c: In function '_layout_region_get': elm_entry.c:1962:4: warning: suggest parentheses around assignment used as truth value elm_entry.c: In function '_viewport_region_get': elm_entry.c:1997:4: warning: suggest parentheses around assignment used as truth value --- src/lib/elm_entry.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 30622b8..7d6ae9c 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -1959,7 +1959,7 @@ _layout_region_get(Evas_Object *data) Evas_Object *child_obj = data; Evas_Object *parent_obj; - while (parent_obj = elm_widget_parent_get(child_obj)) + while ((parent_obj = elm_widget_parent_get(child_obj))) { if (!strcmp(elm_widget_type_get(parent_obj), "conformant")) { @@ -1994,7 +1994,7 @@ _viewport_region_get(Evas_Object *data) Evas_Object *parent_obj = data; - while (parent_obj = elm_widget_parent_get(parent_obj)) + while ((parent_obj = elm_widget_parent_get(parent_obj))) { if (!strcmp(elm_widget_type_get(parent_obj), "scroller") || !strcmp(elm_widget_type_get(parent_obj), "genlist")) -- 2.7.4