From 134e7ca314294b00ab3aa05d4ac94e0902e6235f Mon Sep 17 00:00:00 2001 From: rpm-build Date: Mon, 29 Jan 2024 07:37:10 +0100 Subject: [PATCH] Use correct pointer types on i386 Content-type: text/plain And other 32-bit architectures, where uint32_t and CARD32 are not the same type. Otherwise the build will fail with GCC 14. Submitted upstream: --- hw/xwayland/xwayland-glamor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/xwayland/xwayland-glamor.c b/hw/xwayland/xwayland-glamor.c index c6aa8eb..4b4fc44 100644 --- a/hw/xwayland/xwayland-glamor.c +++ b/hw/xwayland/xwayland-glamor.c @@ -214,7 +214,7 @@ xwl_screen_get_main_dev(struct xwl_screen *xwl_screen) static Bool xwl_get_formats(struct xwl_format *format_array, int format_array_len, - uint32_t *num_formats, uint32_t **formats) + CARD32 *num_formats, CARD32 **formats) { *num_formats = 0; *formats = NULL; @@ -235,9 +235,9 @@ xwl_get_formats(struct xwl_format *format_array, int format_array_len, static Bool xwl_get_formats_for_device(struct xwl_dmabuf_feedback *xwl_feedback, drmDevice *device, - uint32_t *num_formats, uint32_t **formats) + CARD32 *num_formats, CARD32 **formats) { - uint32_t *ret = NULL; + CARD32 *ret = NULL; uint32_t count = 0; /* go through all matching sets of tranches for the window's device */ -- 2.43.0