gl_drm: Fix shadow warning
authorJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Jun 2016 06:10:28 +0000 (15:10 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 7 Jun 2016 06:10:28 +0000 (15:10 +0900)
src/modules/evas/engines/gl_drm/evas_engine.c

index 29f2e0c..fc7524e 100644 (file)
@@ -1316,11 +1316,11 @@ eng_image_native_set(void *data, void *image, void *native)
                }
              if ((n = calloc(1, sizeof(Native))))
                {
-                  struct dmabuf_attributes *a;
+                  struct dmabuf_attributes *a2;
 
-                  a = ns->data.wl_dmabuf.attr;
+                  a2 = ns->data.wl_dmabuf.attr;
                   memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface));
-                  memcpy(&n->ns_data.wl_surface_dmabuf.attr, a, sizeof(*a));
+                  memcpy(&n->ns_data.wl_surface_dmabuf.attr, a2, sizeof(*a2));
                   eina_hash_add(ob->gl_context->shared->native_wl_hash,
                                 &wlid, img);