clean up warnings in dmabuf code

This commit is contained in:
Derek Foreman 2016-05-18 12:33:56 -05:00
parent 1eddd375d8
commit 402c56e1f2
2 changed files with 8 additions and 5 deletions

View File

@ -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);

View File

@ -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;