nested: Cast away warnings for differing arguments to eglQueryWaylandBufferWL
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 9 Oct 2013 20:34:35 +0000 (13:34 -0700)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 10 Oct 2013 23:50:18 +0000 (16:50 -0700)
clients/nested.c

index 3e87674..5085234 100644 (file)
@@ -288,7 +288,7 @@ surface_attach(struct wl_client *client,
                wl_buffer_send_release(surface->buffer_resource);
 
        surface->buffer_resource = buffer_resource;
-       if (!query_buffer(nested->egl_display, buffer_resource,
+       if (!query_buffer(nested->egl_display, (void *) buffer_resource,
                          EGL_TEXTURE_FORMAT, &format)) {
                fprintf(stderr, "attaching non-egl wl_buffer\n");
                return;
@@ -316,8 +316,10 @@ surface_attach(struct wl_client *client,
                return;
        }
 
-       query_buffer(nested->egl_display, buffer_resource, EGL_WIDTH, &width);
-       query_buffer(nested->egl_display, buffer_resource, EGL_HEIGHT, &height);
+       query_buffer(nested->egl_display,
+                    (void *) buffer_resource, EGL_WIDTH, &width);
+       query_buffer(nested->egl_display,
+                    (void *) buffer_resource, EGL_HEIGHT, &height);
 
        device = display_get_cairo_device(nested->display);
        surface->cairo_surface =