mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
dri3: fix warning on incompatible int32 pointer types
on PPC/Gentoo:
> ../xlibre-server-9999/dri3/dri3_request.c: In function 'proc_dri3_buffers_from_pixmap':
> ../xlibre-server-9999/dri3/dri3_request.c:518:37: error: passing argument 2 of 'x_rpcbuf_write_CARD32s' from incompatible pointer type [-Wincompatible-pointer-types]
> 518 | x_rpcbuf_write_CARD32s(&rpcbuf, strides, num_fds);
> | ^~~~~~~
> | |
> | uint32_t * {aka unsigned int *}
See: https://github.com/X11Libre/xserver/issues/1042
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -515,8 +515,8 @@ proc_dri3_buffers_from_pixmap(ClientPtr client)
|
|||||||
}
|
}
|
||||||
|
|
||||||
x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE };
|
x_rpcbuf_t rpcbuf = { .swapped = client->swapped, .err_clear = TRUE };
|
||||||
x_rpcbuf_write_CARD32s(&rpcbuf, strides, num_fds);
|
x_rpcbuf_write_CARD32s(&rpcbuf, (CARD32*)strides, num_fds);
|
||||||
x_rpcbuf_write_CARD32s(&rpcbuf, offsets, num_fds);
|
x_rpcbuf_write_CARD32s(&rpcbuf, (CARD32*)offsets, num_fds);
|
||||||
|
|
||||||
xDRI3BuffersFromPixmapReply rep = {
|
xDRI3BuffersFromPixmapReply rep = {
|
||||||
.nfd = num_fds,
|
.nfd = num_fds,
|
||||||
|
|||||||
Reference in New Issue
Block a user