From: JunsuChoi Date: Mon, 23 May 2016 07:05:33 +0000 (+0900) Subject: wayland egl : Remove build warning for unused variable X-Git-Tag: accepted/tizen/common/20160601.134157~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=95cf1a6f320d28ee2017bbad110746d238807c35;p=platform%2Fupstream%2Fefl.git wayland egl : Remove build warning for unused variable Remove unused variable. and EINA_UNUSED macro was inserted after unused parameter. Change-Id: Ic0ee6f5e0c62a87b0b8eeb1d539b7676b6ce51ff --- diff --git a/src/modules/evas/engines/wayland_egl/evas_engine.c b/src/modules/evas/engines/wayland_egl/evas_engine.c index 69092a0..548bd1b 100755 --- a/src/modules/evas/engines/wayland_egl/evas_engine.c +++ b/src/modules/evas/engines/wayland_egl/evas_engine.c @@ -1195,7 +1195,7 @@ _native_cb_bind(void *data EINA_UNUSED, void *image) if (n->ns_data.evasgl.surface) { Eina_Bool is_egl_image = EINA_FALSE; - void *surface; + void *surface = NULL; if (glsym_evgl_native_surface_buffer_get) surface = glsym_evgl_native_surface_buffer_get(n->ns_data.evasgl.surface, &is_egl_image); @@ -1337,12 +1337,11 @@ _native_cb_free(void *data, void *image) } static int -_native_cb_yinvert(void *data, void *image) +_native_cb_yinvert(void *data EINA_UNUSED, void *image) { - Render_Engine *re = data; Evas_GL_Image *im = image; Native *n = im->native.data; - int yinvert = 0, val; + int yinvert = 0; // Yinvert callback should only be used for EVAS_NATIVE_SURFACE_EVASGL type now, // as yinvert value is not changed for other types.