From 94f74fa92e677e28c1ef560f9a8a039f9cf69579 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jul 2019 22:41:38 +0200 Subject: Fix some warnings --- pugl/pugl_x11_cairo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pugl/pugl_x11_cairo.c') diff --git a/pugl/pugl_x11_cairo.c b/pugl/pugl_x11_cairo.c index bd427f8..8febe46 100644 --- a/pugl/pugl_x11_cairo.c +++ b/pugl/pugl_x11_cairo.c @@ -61,7 +61,7 @@ puglX11CairoCreate(PuglView* view) return 1; } - int st = cairo_surface_status(surface->surface); + cairo_status_t st = cairo_surface_status(surface->surface); if (st) { fprintf(stderr, "error: failed to create cairo surface (%s)\n", cairo_status_to_string(st)); @@ -72,7 +72,7 @@ puglX11CairoCreate(PuglView* view) fprintf(stderr, "error: cairo context is invalid (%s)\n", cairo_status_to_string(st)); } - return st; + return (int)st; } static int -- cgit v1.2.1