Resolve unused variable and functions warnings on wayland environment 05/33205/1
authorGwanglim Lee <gl77.lee@samsung.com>
Wed, 7 Jan 2015 01:48:11 +0000 (10:48 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Wed, 7 Jan 2015 01:48:11 +0000 (10:48 +0900)
Change-Id: I82cdbb6cc666f765d27e402bf31fd4aac53d6fd0

src/efl_util.c

index 7307448..4594cc7 100644 (file)
@@ -39,14 +39,18 @@ typedef struct _notification_error_cb_info
 Eina_List *_g_notification_error_cb_info_list;
 static Ecore_Event_Handler* _noti_level_access_result_handler = NULL;
 static int _noti_handler_count = 0;
-static unsigned int _noti_level_access_result_atom = 0;
 
-static Eina_Bool _efl_util_client_message(void *data, int type, void *event);
 static notification_error_cb_info *_notification_error_cb_info_find(Evas_Object *window);
-static notification_error_cb_info *_notification_error_cb_info_find_by_xwin(unsigned int xwin);
 static Eina_Bool _efl_util_notification_info_add(Evas_Object *window, efl_util_notification_window_level_error_cb callback, void *user_data);
 static Eina_Bool _efl_util_notification_info_del(Evas_Object *window);
 
+#if ECORE_X_FOUND
+static unsigned int _noti_level_access_result_atom = 0;
+
+static Eina_Bool _efl_util_client_message(void *data, int type, void *event);
+static notification_error_cb_info *_notification_error_cb_info_find_by_xwin(unsigned int xwin);
+#endif
+
 
 int efl_util_set_notification_window_level (Evas_Object* window, efl_util_notification_level_e level)
 {
@@ -401,9 +405,9 @@ int efl_util_set_window_opaque_state (Evas_Object *win, Efl_Util_Opaque_State st
        return 0;
 }
 
+#if ECORE_X_FOUND
 static Eina_Bool _efl_util_client_message(void *data, int type, void *event)
 {
-#if ECORE_X_FOUND
        Ecore_X_Event_Client_Message *ev;
 
        ev = event;
@@ -428,7 +432,6 @@ static Eina_Bool _efl_util_client_message(void *data, int type, void *event)
                        }
                }
        }
-#endif
 
        return ECORE_CALLBACK_PASS_ON;
 }
@@ -453,6 +456,7 @@ static notification_error_cb_info *_notification_error_cb_info_find_by_xwin(unsi
 
        return NULL;
 }
+#endif
 
 static notification_error_cb_info *_notification_error_cb_info_find(Evas_Object *window)
 {