From f6e928105be1f2cb429502bfd057af8044e81deb Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 4 Jun 2019 16:15:35 +0900 Subject: [PATCH] * src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'. --- src/image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/image.c b/src/image.c index a2e4aa98bf9..9b0080130bc 100644 --- a/src/image.c +++ b/src/image.c @@ -239,7 +239,7 @@ cr_create_cr_surface_from_image (struct frame *f, struct image *img) : CAIRO_FORMAT_RGB24), pimg->width, pimg->height, pimg->bytes_per_line); - static cairo_user_data_key_t key; + static const cairo_user_data_key_t key; cairo_surface_set_user_data (surface, &key, pimg->data, xfree); unblock_input (); pimg->data = NULL; -- 2.39.2