[SDL_Tizen] Fix build warnings 37/152137/1 accepted/tizen/4.0/unified/20170925.150705 accepted/tizen/unified/20170925.150804 submit/tizen/20170925.063945 submit/tizen_4.0/20170925.063959 submit/tizen_4.0/20171211.021012 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
authorhuiyu,eun <huiyu.eun@samsung.com>
Mon, 25 Sep 2017 06:25:30 +0000 (15:25 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Mon, 25 Sep 2017 06:25:30 +0000 (15:25 +0900)
-implicit declaration of function 'init_info' [-Wimplicit-function-declaration]
-conflicting types for 'init_info'
 -> previous implicit declaration of 'init_info' was here

-pointer targets in passing argument 6 of 'edje_object_part_geometry_get' differ in signedness [-Wpointer-sign]

Change-Id: I8dbb5008f38be71bac9989c6798a3687425e8ea5
Signed-off-by: huiyu,eun <huiyu.eun@samsung.com>
src/video/tizen/indicator/SDL_tizenindicator.c

index 02eb11b..51f5847 100644 (file)
@@ -279,24 +279,15 @@ static Eina_Bool _window_show_cb(void *data, int type, void *event)
        return ECORE_CALLBACK_PASS_ON;
 }
 
-static void
-create_base_gui(appdata_s *ad)
-{
-
-       ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, _window_show_cb, ad);
-
-       ad->win = (Evas_Object *)elm_win_create("SDL_Indicator");
-       evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
-       ad->conform = (Evas_Object *)elm_conformand_create(ad->win);
-       init_info(ad);
-}
-
 void init_info(appdata_s *ad)
 {
        int width=0;
        int height=0;
        elm_win_screen_size_get(ad->win, 0, 0, &width, &height);
-       edje_object_part_geometry_get(elm_layout_edje_get(ad->conform), "indicator_base", NULL, NULL, NULL, &ad->indicator_h);
+
+       int h;
+       edje_object_part_geometry_get(elm_layout_edje_get(ad->conform), "indicator_base", NULL, NULL, NULL, &(h));
+       ad->indicator_h = h;
        evas_object_resize(ad->win, width, ad->indicator_h);
 
        dlog_print(DLOG_INFO, LOG_TAG, "[SDL]indicator size : %d", ad->indicator_h);
@@ -320,6 +311,17 @@ void init_info(appdata_s *ad)
        }
 }
 
+static void
+create_base_gui(appdata_s *ad)
+{
+       ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, _window_show_cb, ad);
+
+       ad->win = (Evas_Object *)elm_win_create("SDL_Indicator");
+       evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
+       ad->conform = (Evas_Object *)elm_conformand_create(ad->win);
+       init_info(ad);
+}
+
 static bool
 app_create(void *data)
 {