diff options
author | David Robillard <d@drobilla.net> | 2019-07-21 22:41:38 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-21 22:41:38 +0200 |
commit | 94f74fa92e677e28c1ef560f9a8a039f9cf69579 (patch) | |
tree | 4f171fa8ea35c4d4e2514d9be2884feb129153a3 /pugl/pugl_x11_cairo.c | |
parent | bc78b748e7b6885fd78675db725bcfa8d755de9c (diff) | |
download | pugl-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.c | 4 |
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 |