diff --git a/src/bin/e_comp_wl_dmabuf.c b/src/bin/e_comp_wl_dmabuf.c index ae0581ad4..f48ee19ca 100644 --- a/src/bin/e_comp_wl_dmabuf.c +++ b/src/bin/e_comp_wl_dmabuf.c @@ -2,6 +2,14 @@ * follows. */ +#if __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wunused-parameter" +#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) || __GNUC__ > 4 +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-parameter" +#endif + /* * Copyright © 2014, 2015 Collabora, Ltd. * @@ -152,7 +160,6 @@ params_create(struct wl_client *client, { struct linux_dmabuf_buffer *buffer; int i; - void *lala; buffer = wl_resource_get_user_data(params_resource); diff --git a/src/bin/e_pixmap.c b/src/bin/e_pixmap.c index 126c016b5..f45da3747 100644 --- a/src/bin/e_pixmap.c +++ b/src/bin/e_pixmap.c @@ -506,7 +506,6 @@ e_pixmap_refresh(E_Pixmap *cp) { E_Comp_Wl_Buffer *buffer = cp->buffer; struct wl_shm_buffer *shm_buffer; - struct linux_dmabuf_buffer *dmabuf_buffer; int format; cp->w = cp->h = 0; @@ -718,9 +717,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns) if (!cp->buffer) return EINA_FALSE; if (cp->buffer->dmabuf_buffer) { - struct dmabuf_attributes *a; - - a = &cp->buffer->dmabuf_buffer->attributes; ns->type = EVAS_NATIVE_SURFACE_WL_DMABUF; ns->version = EVAS_NATIVE_SURFACE_VERSION;