From: YAMAMOTO Mitsuharu Date: Tue, 4 Jun 2019 07:15:35 +0000 (+0900) Subject: * src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'. X-Git-Tag: emacs-27.0.90~2710 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f6e928105be1f2cb429502bfd057af8044e81deb;p=emacs.git * src/image.c (cr_create_cr_surface_from_image): Add const to variable `key'. --- 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;