Fix warnings from adding -Wall back

dev
Kristian Høgsberg 14 years ago
parent 1f25315ae2
commit 06bc26401c
  1. 12
      clients/window.c
  2. 1
      compositor/compositor-wayland.c
  3. 2
      compositor/compositor.c
  4. 2
      wayland/wayland-server.h

@ -198,7 +198,7 @@ display_get_image_for_drm_surface(struct display *display,
return data->image; return data->image;
} }
cairo_surface_t * static cairo_surface_t *
display_create_drm_surface(struct display *display, display_create_drm_surface(struct display *display,
struct rectangle *rectangle) struct rectangle *rectangle)
{ {
@ -251,7 +251,7 @@ display_create_drm_surface(struct display *display,
return surface; return surface;
} }
cairo_surface_t * static cairo_surface_t *
display_create_drm_surface_from_file(struct display *display, display_create_drm_surface_from_file(struct display *display,
const char *filename, const char *filename,
struct rectangle *rect) struct rectangle *rect)
@ -326,7 +326,7 @@ struct shm_surface_data {
size_t length; size_t length;
}; };
void static void
shm_surface_data_destroy(void *p) shm_surface_data_destroy(void *p)
{ {
struct shm_surface_data *data = p; struct shm_surface_data *data = p;
@ -335,7 +335,7 @@ shm_surface_data_destroy(void *p)
munmap(data->map, data->length); munmap(data->map, data->length);
} }
cairo_surface_t * static cairo_surface_t *
display_create_shm_surface(struct display *display, display_create_shm_surface(struct display *display,
struct rectangle *rectangle) struct rectangle *rectangle)
{ {
@ -394,7 +394,7 @@ display_create_shm_surface(struct display *display,
return surface; return surface;
} }
cairo_surface_t * static cairo_surface_t *
display_create_shm_surface_from_file(struct display *display, display_create_shm_surface_from_file(struct display *display,
const char *filename, const char *filename,
struct rectangle *rect) struct rectangle *rect)
@ -459,7 +459,7 @@ display_create_surface(struct display *display,
#endif #endif
} }
cairo_surface_t * static cairo_surface_t *
display_create_surface_from_file(struct display *display, display_create_surface_from_file(struct display *display,
const char *filename, const char *filename,
struct rectangle *rectangle) struct rectangle *rectangle)

@ -181,7 +181,6 @@ wayland_compositor_present(struct wlsc_compositor *base)
{ {
struct wayland_compositor *c = (struct wayland_compositor *) base; struct wayland_compositor *c = (struct wayland_compositor *) base;
struct wayland_output *output; struct wayland_output *output;
uint32_t msec;
glFlush(); glFlush();

@ -16,6 +16,8 @@
* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/ */
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

@ -74,7 +74,7 @@ int wl_event_loop_dispatch(struct wl_event_loop *loop, int timeout);
struct wl_event_source *wl_event_loop_add_idle(struct wl_event_loop *loop, struct wl_event_source *wl_event_loop_add_idle(struct wl_event_loop *loop,
wl_event_loop_idle_func_t func, wl_event_loop_idle_func_t func,
void *data); void *data);
int wl_event_get_fd(struct wl_event_loop *loop); int wl_event_loop_get_fd(struct wl_event_loop *loop);
struct wl_client; struct wl_client;
struct wl_display; struct wl_display;

Loading…
Cancel
Save