remove some warnings
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Nov 2010 07:00:00 +0000 (16:00 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 25 Nov 2010 07:00:00 +0000 (16:00 +0900)
src/lib/elm_autocompleteview.c
src/lib/elm_colorpalette.c
src/lib/elm_datefield.c
src/lib/elm_multibuttonentry.c
src/lib/elm_nocontents.c

index a3b82c6..235cdc7 100644 (file)
@@ -131,7 +131,7 @@ static void _list_click( void *data, Evas_Object *obj, void *event_info )
        if((it==NULL)||(wd==NULL))\r
                return;\r
        const char *text = elm_list_item_label_get(it);\r
-       evas_object_smart_callback_call((Evas_Object *)data, "selected", text);         \r
+       evas_object_smart_callback_call((Evas_Object *)data, "selected", (void *)text);\r
        if(wd->data_list)\r
        {\r
                if(text!=NULL)\r
index 234ef43..bc5bf0f 100644 (file)
@@ -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
index 848a285..333e530 100644 (file)
@@ -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;
index dab3c98..9409cb6 100644 (file)
@@ -297,7 +297,6 @@ static void
 _view_update(Evas_Object *obj)\r
 {      \r
        Widget_Data *wd = elm_widget_data_get(obj);     \r
-       Evas_Coord w_label = 0, h_label = 0, w = 0, h = 0;\r
        if (!wd || !wd->box || !wd->entry) return;\r
 \r
        if(wd->contracted == 1){\r
index 6fec0a5..3355aa9 100644 (file)
@@ -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;