| From 78258169cf0c380754804b5835203a199ba8efab Mon Sep 17 00:00:00 2001 | |
| From: Stephan Bergmann <stephan.bergmann@collabora.com> | |
| Date: Mon, 22 Sep 2025 17:08:36 +0200 | |
| Subject: [PATCH] external/cairo: Silence some -Wincompatible-pointer-types | |
| Downloaded from | |
| https://github.com/LibreOffice/core/blob/36e0812a01ae5b94a1bb7549b0db20812d0f821a/external/cairo/cairo/Wincompatible-pointer-types.patch.0 | |
| Upstream: https://gitlab.freedesktop.org/cairo/cairo/-/issues/921 | |
| Signed-off-by: Bernd Kuhls <bernd@kuhls.net> | |
| --- | |
| src/cairo-image-source.c | 6 +++--- | |
| 1 file changed, 3 insertions(+), 3 deletions(-) | |
| diff --git a/src/cairo-image-source.c b/src/cairo-image-source.c | |
| index eaf72e2cc..05ffa5660 100644 | |
| --- a/src/cairo-image-source.c | |
| +++ b/src/cairo-image-source.c | |
| @@ -86,7 +86,7 @@ _pixman_transparent_image (void) | |
| if (unlikely (image == NULL)) | |
| return NULL; | |
| - if (_cairo_atomic_ptr_cmpxchg (&__pixman_transparent_image, | |
| + if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_transparent_image, | |
| NULL, image)) | |
| { | |
| pixman_image_ref (image); | |
| @@ -118,7 +118,7 @@ _pixman_black_image (void) | |
| if (unlikely (image == NULL)) | |
| return NULL; | |
| - if (_cairo_atomic_ptr_cmpxchg (&__pixman_black_image, | |
| + if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_black_image, | |
| NULL, image)) | |
| { | |
| pixman_image_ref (image); | |
| @@ -150,7 +150,7 @@ _pixman_white_image (void) | |
| if (unlikely (image == NULL)) | |
| return NULL; | |
| - if (_cairo_atomic_ptr_cmpxchg (&__pixman_white_image, | |
| + if (_cairo_atomic_ptr_cmpxchg ((cairo_atomic_intptr_t *) &__pixman_white_image, | |
| NULL, image)) | |
| { | |
| pixman_image_ref (image); | |
| -- | |
| 2.47.3 | |