From 27732b92d6a8f61f20903753786c77bae9e94ba3 Mon Sep 17 00:00:00 2001 From: Jihoon Kim Date: Thu, 25 Nov 2010 16:00:00 +0900 Subject: [PATCH] remove some warnings --- src/lib/elm_autocompleteview.c | 2 +- src/lib/elm_colorpalette.c | 3 +-- src/lib/elm_datefield.c | 9 ++++----- src/lib/elm_multibuttonentry.c | 1 - src/lib/elm_nocontents.c | 2 +- 5 files changed, 7 insertions(+), 10 deletions(-) diff --git a/src/lib/elm_autocompleteview.c b/src/lib/elm_autocompleteview.c index a3b82c6..235cdc7 100644 --- a/src/lib/elm_autocompleteview.c +++ b/src/lib/elm_autocompleteview.c @@ -131,7 +131,7 @@ static void _list_click( void *data, Evas_Object *obj, void *event_info ) if((it==NULL)||(wd==NULL)) return; const char *text = elm_list_item_label_get(it); - evas_object_smart_callback_call((Evas_Object *)data, "selected", text); + evas_object_smart_callback_call((Evas_Object *)data, "selected", (void *)text); if(wd->data_list) { if(text!=NULL) diff --git a/src/lib/elm_colorpalette.c b/src/lib/elm_colorpalette.c index 234ef43..bc5bf0f 100644 --- a/src/lib/elm_colorpalette.c +++ b/src/lib/elm_colorpalette.c @@ -97,8 +97,7 @@ static void _sub_del(void *data, Evas_Object *obj, void *event_info) { Widget_Data *wd = elm_widget_data_get(obj); - if (!wd) - return; + if (!wd) return; } static void diff --git a/src/lib/elm_datefield.c b/src/lib/elm_datefield.c index 848a285..333e530 100644 --- a/src/lib/elm_datefield.c +++ b/src/lib/elm_datefield.c @@ -821,7 +821,7 @@ elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout) wd->layout = layout; _theme_hook(obj); } - return EINA_TRUE; + return; } /** @@ -835,7 +835,7 @@ elm_datefield_layout_set(Evas_Object *obj, Elm_Datefield_Layout layout) EAPI Elm_Datefield_Layout elm_datefield_layout_get(const Evas_Object *obj) { - ELM_CHECK_WIDTYPE(obj, widtype); + ELM_CHECK_WIDTYPE(obj, widtype) 0; Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return 0; @@ -860,7 +860,6 @@ elm_datefield_date_set(Evas_Object *obj, int year, int month, int day, int hour, { ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); - int day_of_month; if (!wd) return; @@ -925,7 +924,7 @@ elm_datefield_date_get(const Evas_Object *obj, int *year, int *month, int *day, EAPI Eina_Bool elm_datefield_date_max_set(Evas_Object *obj, int year, int month, int day) { - ELM_CHECK_WIDTYPE(obj, widtype); + ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); int day_of_month; Eina_Bool update = EINA_FALSE; @@ -999,7 +998,7 @@ elm_datefield_date_max_get(const Evas_Object *obj, int *year, int *month, int *d EAPI Eina_Bool elm_datefield_date_min_set(Evas_Object *obj, int year, int month, int day) { - ELM_CHECK_WIDTYPE(obj, widtype); + ELM_CHECK_WIDTYPE(obj, widtype) EINA_FALSE; Widget_Data *wd = elm_widget_data_get(obj); int day_of_month; Eina_Bool update = EINA_FALSE; diff --git a/src/lib/elm_multibuttonentry.c b/src/lib/elm_multibuttonentry.c index dab3c98..9409cb6 100644 --- a/src/lib/elm_multibuttonentry.c +++ b/src/lib/elm_multibuttonentry.c @@ -297,7 +297,6 @@ static void _view_update(Evas_Object *obj) { Widget_Data *wd = elm_widget_data_get(obj); - Evas_Coord w_label = 0, h_label = 0, w = 0, h = 0; if (!wd || !wd->box || !wd->entry) return; if(wd->contracted == 1){ diff --git a/src/lib/elm_nocontents.c b/src/lib/elm_nocontents.c index 6fec0a5..3355aa9 100644 --- a/src/lib/elm_nocontents.c +++ b/src/lib/elm_nocontents.c @@ -134,7 +134,7 @@ elm_nocontents_label_get(const Evas_Object *obj) EAPI void elm_nocontents_custom_set(const Evas_Object *obj, Evas_Object *custom) { - ELM_CHECK_WIDTYPE(obj, widtype) NULL; + ELM_CHECK_WIDTYPE(obj, widtype); Widget_Data *wd = elm_widget_data_get(obj); if (!wd) return; if (!custom) return; -- 2.7.4