From a74ef93d8221b37af60290abfc4f15214111d3cd Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 26 Jan 2023 13:21:41 +0200 Subject: Fix -Wunused-function warnings --- util/cairo-trace/trace.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'util') diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c index 7ccdc41dc..1bdb07591 100644 --- a/util/cairo-trace/trace.c +++ b/util/cairo-trace/trace.c @@ -4882,12 +4882,6 @@ cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func, void *c } #endif -static const char * -_content_from_surface (cairo_surface_t *surface) -{ - return _content_to_string (DLCALL (cairo_surface_get_content, surface)); -} - #if CAIRO_HAS_TEE_SURFACE #include @@ -4925,6 +4919,12 @@ cairo_tee_surface_create (cairo_surface_t *master) #if CAIRO_HAS_XLIB_SURFACE #include +static const char * +_content_from_surface (cairo_surface_t *surface) +{ + return _content_to_string (DLCALL (cairo_surface_get_content, surface)); +} + cairo_surface_t * cairo_xlib_surface_create (Display *dpy, Drawable drawable, -- cgit v1.2.1