wayland egl : Remove build warning for unused variable 86/70886/2
authorJunsuChoi <jsuya.choi@samsung.com>
Mon, 23 May 2016 07:05:33 +0000 (16:05 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 26 May 2016 07:13:21 +0000 (00:13 -0700)
   Remove unused variable. and EINA_UNUSED macro was inserted after unused parameter.

Change-Id: Ic0ee6f5e0c62a87b0b8eeb1d539b7676b6ce51ff

src/modules/evas/engines/wayland_egl/evas_engine.c

index 69092a0..548bd1b 100755 (executable)
@@ -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.