Fix build warning and set Werror flag 88/63088/1
authorparas.kumar <paras.kumar@samsung.com>
Tue, 22 Mar 2016 05:30:29 +0000 (11:00 +0530)
committerparas.kumar <paras.kumar@samsung.com>
Tue, 22 Mar 2016 05:30:29 +0000 (11:00 +0530)
Change-Id: I6e8c317c972f21bddf0c0047c11ff85bdbfb59fb
Signed-off-by: paras.kumar <paras.kumar@samsung.com>
CMakeLists.txt
src/ui/bt-main-ug.c
src/ui/bt-main-view.c
src/ui/bt-profile-view.c

index 5a819f9..6b331d1 100644 (file)
@@ -61,7 +61,7 @@ ENDFOREACH(flag)
 SET(GC_SECTIONS_FLAGS "-fdata-sections -ffunction-sections -Wl,--gc-sections")
 SET(EXTRA_CXXFLAGS "${EXTRA_CXXFLAGS} -fvisibility=hidden -Wall")
 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS} ${GC_SECTIONS_FLAGS}")
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS}")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS} ${GC_SECTIONS_FLAGS} -fPIC -Werror")
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
 ADD_DEFINITIONS("-DEDJDIR=\"${EDJDIR}\"")
index 7bd7b23..168efb4 100644 (file)
@@ -60,6 +60,8 @@
 
 static void __on_destroy(ui_gadget_h ug, app_control_h service, void *priv);
 
+extern int power_wakeup(bool dim);
+
 
 /**********************************************************************
 *                                               Static Functions
index 4d683e5..46623cc 100644 (file)
@@ -3456,7 +3456,6 @@ static void __bt_more_popup_rename_device_item_sel_cb(void *data,
        evas_object_smart_callback_add(button, "clicked",
                        __bt_rename_device_ok_cb, ugd);
 
-       elm_genlist_realization_mode_set(genlist, EINA_TRUE);
        evas_object_show(genlist);
 
        elm_popup_align_set(popup, ELM_NOTIFY_ALIGN_FILL, 1.0);
index a992bb7..a4503b9 100644 (file)
@@ -480,7 +480,6 @@ static void __bt_profile_name_item_sel(void *data, Evas_Object *obj,
        evas_object_smart_callback_add(button, "clicked",
                        __bt_profile_rename_device_ok_cb, dev);
 
-       elm_genlist_realization_mode_set(genlist, EINA_TRUE);
        evas_object_show(genlist);
 
        elm_object_content_set(popup, genlist);