From 9f91cd3730e8c5c6f1bad8492449b3b689e007e1 Mon Sep 17 00:00:00 2001 From: "huiyu,eun" Date: Mon, 25 Sep 2017 15:25:30 +0900 Subject: [PATCH] [SDL_Tizen] Fix build warnings -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 --- src/video/tizen/indicator/SDL_tizenindicator.c | 28 ++++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/src/video/tizen/indicator/SDL_tizenindicator.c b/src/video/tizen/indicator/SDL_tizenindicator.c index 02eb11b..51f5847 100644 --- a/src/video/tizen/indicator/SDL_tizenindicator.c +++ b/src/video/tizen/indicator/SDL_tizenindicator.c @@ -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) { -- 2.7.4