From 431d0f2e4cfda55a8298575526f3bd38e8300ac6 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Tue, 17 May 2016 10:42:44 +0900 Subject: [PATCH] Ecore Wayland : Remove build warning Remove build warning from ecore_wl_input.c, _window.c I did remove unused variable and add EINA_UNUSED for unused parameter. Also, I added type casting for 'uintptr' type Change-Id: I8a53efbd1712debc3331627d8e2da4bcb4176c0c --- src/lib/ecore_wayland/ecore_wl_input.c | 6 +++--- src/lib/ecore_wayland/ecore_wl_window.c | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/lib/ecore_wayland/ecore_wl_input.c b/src/lib/ecore_wayland/ecore_wl_input.c index a5aeb0c..bc68dc9 100644 --- a/src/lib/ecore_wayland/ecore_wl_input.c +++ b/src/lib/ecore_wayland/ecore_wl_input.c @@ -1049,8 +1049,8 @@ _ecore_wl_input_cb_keyboard_key(void *data, struct wl_keyboard *keyboard EINA_UN } else { - e->window = NULL; - e->event_window = NULL; + e->window = (uintptr_t)NULL; + e->event_window = (uintptr_t)NULL; } // e->timestamp = timestamp; @@ -2032,7 +2032,7 @@ _ecore_wl_input_add_ecore_device(const char *name, const char *identifier, Ecore } static Eina_Bool -_ecore_wl_input_del_ecore_device(const char *name, const char *identifier, Ecore_Device_Class clas) +_ecore_wl_input_del_ecore_device(const char *name EINA_UNUSED, const char *identifier, Ecore_Device_Class clas) { const Eina_List *dev_list = NULL; const Eina_List *l; diff --git a/src/lib/ecore_wayland/ecore_wl_window.c b/src/lib/ecore_wayland/ecore_wl_window.c index eea3d8a..81b6f4b 100644 --- a/src/lib/ecore_wayland/ecore_wl_window.c +++ b/src/lib/ecore_wayland/ecore_wl_window.c @@ -333,7 +333,6 @@ ecore_wl_window_new(Ecore_Wl_Window *parent, int x, int y, int w, int h, int buf { Ecore_Wl_Window *win; static int _win_id = 1; - struct wl_compositor *wlcomp; LOGFN(__FILE__, __LINE__, __FUNCTION__); @@ -1109,7 +1108,6 @@ ecore_wl_window_surface_find(struct wl_surface *surface) EAPI void ecore_wl_window_input_rect_set(Ecore_Wl_Window *win, Eina_Rectangle *input_rect) { - Eina_Bool unset = EINA_FALSE; if (!win) return; if (!input_rect) return; if (win->input_region) -- 2.7.4