From 95cf1a6f320d28ee2017bbad110746d238807c35 Mon Sep 17 00:00:00 2001 From: JunsuChoi Date: Mon, 23 May 2016 16:05:33 +0900 Subject: [PATCH] wayland egl : Remove build warning for unused variable Remove unused variable. and EINA_UNUSED macro was inserted after unused parameter. Change-Id: Ic0ee6f5e0c62a87b0b8eeb1d539b7676b6ce51ff --- src/modules/evas/engines/wayland_egl/evas_engine.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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. -- 2.7.4