From e922fcc35561e92a542f015bea18ee4823b27ba4 Mon Sep 17 00:00:00 2001 From: barbieri Date: Fri, 27 Feb 2009 16:35:32 +0000 Subject: [PATCH] Remove last standing warnings. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39269 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_box.c | 9 +++------ src/lib/canvas/evas_object_table.c | 4 ++-- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/lib/canvas/evas_object_box.c b/src/lib/canvas/evas_object_box.c index 26d4682..ddb6411 100644 --- a/src/lib/canvas/evas_object_box.c +++ b/src/lib/canvas/evas_object_box.c @@ -57,7 +57,7 @@ _evas_object_box_iterator_next(Evas_Object_Box_Iterator *it, void **data) { Evas_Object_Box_Option *opt; - if (!eina_iterator_next(it->real_iterator, &opt)) + if (!eina_iterator_next(it->real_iterator, (void **)&opt)) return EINA_FALSE; if (data) *data = opt->obj; return EINA_TRUE; @@ -81,7 +81,7 @@ _evas_object_box_accessor_get_at(Evas_Object_Box_Accessor *it, unsigned int inde { Evas_Object_Box_Option *opt; - if (!eina_accessor_data_get(it->real_accessor, index, &opt)) + if (!eina_accessor_data_get(it->real_accessor, index, (void *)&opt)) return EINA_FALSE; if (data) *data = opt->obj; return EINA_TRUE; @@ -269,7 +269,7 @@ static Evas_Object_Box_Option * _evas_object_box_insert_at_default(Evas_Object *o, Evas_Object_Box_Data *priv, Evas_Object *child, unsigned int pos) { Eina_List *l; - int i; + unsigned int i; if ((pos == 0) && (eina_list_count(priv->children) == 0)) { @@ -2047,9 +2047,6 @@ evas_object_box_remove_at(Evas_Object *o, unsigned int pos) Evas_Object *obj; EVAS_OBJECT_BOX_DATA_GET_OR_RETURN_VAL(o, priv, 0); - if (pos < 0) - return 0; - api = priv->api; if ((!api) || (!api->remove_at)) return 0; diff --git a/src/lib/canvas/evas_object_table.c b/src/lib/canvas/evas_object_table.c index 809bf30..7eb3f85 100644 --- a/src/lib/canvas/evas_object_table.c +++ b/src/lib/canvas/evas_object_table.c @@ -116,7 +116,7 @@ _evas_object_table_iterator_next(Evas_Object_Table_Iterator *it, void **data) { Evas_Object_Table_Option *opt; - if (!eina_iterator_next(it->real_iterator, &opt)) + if (!eina_iterator_next(it->real_iterator, (void **)&opt)) return EINA_FALSE; if (data) *data = opt->obj; return EINA_TRUE; @@ -140,7 +140,7 @@ _evas_object_table_accessor_get_at(Evas_Object_Table_Accessor *it, unsigned int { Evas_Object_Table_Option *opt; - if (!eina_accessor_data_get(it->real_accessor, index, &opt)) + if (!eina_accessor_data_get(it->real_accessor, index, (void **)&opt)) return EINA_FALSE; if (data) *data = opt->obj; return EINA_TRUE; -- 2.7.4