aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_x11_cairo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-21 22:41:38 +0200
committerDavid Robillard <d@drobilla.net>2019-07-21 22:41:38 +0200
commit94f74fa92e677e28c1ef560f9a8a039f9cf69579 (patch)
tree4f171fa8ea35c4d4e2514d9be2884feb129153a3 /pugl/pugl_x11_cairo.c
parentbc78b748e7b6885fd78675db725bcfa8d755de9c (diff)
downloadpugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.tar.gz
pugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.tar.bz2
pugl-94f74fa92e677e28c1ef560f9a8a039f9cf69579.zip
Fix some warnings
Diffstat (limited to 'pugl/pugl_x11_cairo.c')
-rw-r--r--pugl/pugl_x11_cairo.c4
1 files changed, 2 insertions, 2 deletions
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