Remove build warning 30/67530/2
authoryeji01kim <yeji01.kim@samsung.com>
Wed, 27 Apr 2016 07:19:08 +0000 (16:19 +0900)
committeryeji01kim <yeji01.kim@samsung.com>
Wed, 27 Apr 2016 07:26:47 +0000 (16:26 +0900)
Change-Id: I2eb3309cc18e643b983198ee178d258e74a77c04
Signed-off-by: yeji01kim <yeji01.kim@samsung.com>
CMakeLists.txt
include/dpm-toolkit-popup.h
src/dpm-toolkit.c
src/zone.c

index 310c908..ee24579 100755 (executable)
@@ -38,8 +38,8 @@ SET(PKG_SRCS src/dpm-toolkit.c
                         src/zone.c)
 
 
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fPIE")
-SET(CMAKE_C_FLAGS_DEBUG "-O0 -g")
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -fPIE")
+SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -Wp,-U_FORTIFY_SOURCE")
 SET(CMAKE_C_FLAGS_RELEASE "-O2")
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -pie")
 
index 9a372f5..84618bb 100755 (executable)
@@ -16,4 +16,4 @@ if(global_popup.popup_flag == 0) {                                                                            \
 else   {                                                                                                                       \
        global_popup.popup_flag = 0;                                                                    \
        global_popup.radio_index = -1;                                                          \
-}
\ No newline at end of file
+}
index d3ce57c..e37573b 100755 (executable)
@@ -269,11 +269,6 @@ static void _gl_policy_select(void* data, Evas_Object* obj, void* event_info)
 
 }
 
-static void _gl_policy_entry_select(void* data, Evas_Object* obj, void* event_info)
-{
-       elm_genlist_item_selected_set((Elm_Object_Item*)event_info, EINA_FALSE);
-}
-
 static void _gl_policy_group_select(void* data, Evas_Object* obj, void* event_info)
 {
        Evas_Object* genlist = elm_genlist_add(global_ad->nf);
index 3fe0617..6863d43 100755 (executable)
@@ -3,49 +3,49 @@
 
 int create_zone_handler(struct dpm_toolkit_entity* self)
 {
-        dpm_client_h handle;
-        char *wizappid;
-        int ret;
-
-        handle = dpm_create_client();
-        if (handle == NULL) {
-                dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create client handle");
-                return POLICY_RESULT_FAIL;
-        }
+       dpm_client_h handle;
+       char* wizappid;
+       int ret;
+
+       handle = dpm_create_client();
+       if (handle == NULL) {
+               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create client handle");
+               return POLICY_RESULT_FAIL;
+       }
 
-        handler_display_input_popup("Zone name", self);
-        wizappid = (char*)xmlGetProp(self->model, (xmlChar*)"wizappid") ;
+       handler_display_input_popup("Zone name", self);
+       wizappid = (char*)xmlGetProp(self->model, (xmlChar*) "wizappid");
 
-        if (wizappid == NULL) {
-                dlog_print(DLOG_ERROR, LOG_TAG, "wizappid parameter not found");
-                return POLICY_RESULT_FAIL;
-        }
+       if (wizappid == NULL) {
+               dlog_print(DLOG_ERROR, LOG_TAG, "wizappid parameter not found");
+               return POLICY_RESULT_FAIL;
+       }
 
-        ret = dpm_create_zone(handle, self->entry_input, wizappid);
+       ret = dpm_create_zone(handle, self->entry_input, wizappid);
 
-        dpm_destroy_client(handle);
+       dpm_destroy_client(handle);
 
-       return (ret == DPM_ERROR_NONE)? POLICY_RESULT_SUCCESS : POLICY_RESULT_FAIL;
+       return (ret == DPM_ERROR_NONE) ? POLICY_RESULT_SUCCESS : POLICY_RESULT_FAIL;
 }
 
 int destroy_zone_handler(struct dpm_toolkit_entity* self)
 {
-        dpm_client_h handle;
-        int ret;
+       dpm_client_h handle;
+       int ret;
 
-        handle = dpm_create_client();
-        if (handle == NULL) {
-                dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create client handle");
-                return POLICY_RESULT_FAIL;
-        }
+       handle = dpm_create_client();
+       if (handle == NULL) {
+               dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create client handle");
+               return POLICY_RESULT_FAIL;
+       }
 
-        handler_display_input_popup("Zone name", self);
+       handler_display_input_popup("Zone name", self);
 
-        ret = dpm_remove_zone(handle, self->entry_input);
+       ret = dpm_remove_zone(handle, self->entry_input);
 
-        dpm_destroy_client(handle);
+       dpm_destroy_client(handle);
 
-       return (ret == DPM_ERROR_NONE)? POLICY_RESULT_SUCCESS : POLICY_RESULT_FAIL;
+       return (ret == DPM_ERROR_NONE) ? POLICY_RESULT_SUCCESS : POLICY_RESULT_FAIL;
 }
 
 int get_zone_list_handler(struct dpm_toolkit_entity* self)